Skip to content

Commit 8d07220

Browse files
committed
serving the mp3 files for prod
1 parent db887ee commit 8d07220

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/server/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ class MiraServer extends AppServer {
9696
private setupRoutes(): void {
9797
const app = this.getExpressApp();
9898

99+
// Serve static files from the public directory (for both dev and production)
100+
const publicPath = path.join(__dirname, '../public');
101+
app.use(express.static(publicPath));
102+
99103
// Serve static files from the built frontend (in production)
100104
if (process.env.NODE_ENV === 'production') {
101105
const staticPath = path.join(__dirname, '../../dist/frontend');

0 commit comments

Comments
 (0)