Skip to content
This repository was archived by the owner on Mar 29, 2026. It is now read-only.

Commit 57b5793

Browse files
committed
fix: update file path for serving static files in server configuration
1 parent 0ef49e0 commit 57b5793

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/server/src/configs/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ export class Server {
4646

4747
// Serve the static files from the React app
4848
this.app.get('/', (_req, res) => {
49-
res.sendFile(path.join(__dirname, '../../web/dist/index.html'));
49+
res.sendFile(path.join(__dirname, '../../../web/dist/index.html'));
5050
});
5151
this.app.use(
52-
express.static(path.join(__dirname, '../../web/dist'), {
52+
express.static(path.join(__dirname, '../../../web/dist'), {
5353
maxAge: '1d',
5454
})
5555
);
@@ -88,7 +88,7 @@ export class Server {
8888

8989
// Catch-all route to handle client-side routing
9090
this.app.get('*', (_req, res) => {
91-
res.sendFile(path.join(__dirname, '../../web/dist/index.html'));
91+
res.sendFile(path.join(__dirname, '../../../web/dist/index.html'));
9292
});
9393
}
9494

0 commit comments

Comments
 (0)