Skip to content

Commit 16e4d6e

Browse files
committed
Readd server config
1 parent 9ceca02 commit 16e4d6e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

server/app.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const express = require('express');
2+
const path = require('path');
3+
const app = express();
4+
5+
app.use(express.static(path.join(__dirname, '..', 'build')));
6+
7+
app.get('/*', (req, res) => {
8+
res.sendFile(path.join(__dirname, '..', 'build', 'index.html'));
9+
});
10+
11+
app.listen(5000);
12+
console.log('Server is listening on http://localhost:5000');

server/package.json

Whitespace-only changes.

0 commit comments

Comments
 (0)