Skip to content

Commit 2f129ea

Browse files
committed
update folder path
1 parent c5fe57d commit 2f129ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ console.log('this is running on docker: ', isDocker);
525525

526526
//if in production mode, statically serve everything in the build folder on the route '/dist'
527527
if (process.env.NODE_ENV == 'production') {
528-
app.use('/dist', express.static(path.join(__dirname, '/app/dist')));
528+
app.use('/', express.static(path.join(__dirname, '/build')));
529529
}
530530

531531
app.get('/', (req, res) => {
@@ -535,9 +535,9 @@ app.get('/', (req, res) => {
535535
return res.status(200).sendFile(indexPath);
536536
});
537537

538-
app.get('/bundle.js', (req, res) => {
539-
return res.status(200).sendFile(path.join(process.cwd(), 'bundle.js'));
540-
});
538+
// app.get('/bundle.js', (req, res) => {
539+
// return res.status(200).sendFile(path.join(process.cwd(), 'bundle.js'));
540+
// });
541541

542542
if (isDocker) {
543543
app.get('/main.css', (req, res) => {

0 commit comments

Comments
 (0)