Skip to content

Commit 9e878ce

Browse files
committed
update path
1 parent 4fd12e1 commit 9e878ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,11 @@ app.get(
526526
//if in production mode, statically serve everything in the build folder on the route '/dist'
527527
if (process.env.NODE_ENV == 'production') {
528528
console.log('in production');
529-
console.log('dirname: ', __dirname);
530-
app.use('/', express.static(path.join(__dirname, '/build')));
529+
console.log('joined path: ', path.join(__dirname, '../build'));
530+
app.use('/', express.static(path.join(__dirname, '../build')));
531531
} else {
532532
console.log('not production');
533-
console.log('dirname: ', __dirname);
533+
console.log('joined path: ', path.join(__dirname, '../build'));
534534
app.get('/', (req, res) => {
535535
const indexPath = path.join(__dirname, '../index.html');
536536
return res.status(200).sendFile(indexPath);

0 commit comments

Comments
 (0)