Skip to content

Commit bdeb8a1

Browse files
author
Denis Hilt
authored
Merge pull request #362 from dhilt/demo-app-fix
Demo App fix
2 parents ceea15b + 692d241 commit bdeb8a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (env === 'production') {
2727
}
2828

2929
// Serve static files
30-
app.use(express.static(__dirname + '/../dist/demo'));
30+
app.use(express.static(__dirname + '/../dist/demo/browser'));
3131

3232
const data = [];
3333
for (let i = 1; i < 1000; i++) {
@@ -60,7 +60,7 @@ app.get('/api/data', (req, res) => {
6060

6161
// Send all requests to index.html
6262
app.get('/*', (_, res) =>
63-
res.sendFile(path.join(__dirname + '/../dist/demo/index.html'))
63+
res.sendFile(path.join(__dirname + '/../dist/demo/browser/index.html'))
6464
);
6565

6666
app.listen(port, () => console.log(`Listening ${port} port...`));

0 commit comments

Comments
 (0)