diff --git a/src/server.js b/src/server.js index 7662b4d04..e02fd05f1 100644 --- a/src/server.js +++ b/src/server.js @@ -8,10 +8,12 @@ const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) app.use(express.static(path.join(__dirname, '../dist'))) -app.get('/', function (req, res) { + +app.get('/*', function (req, res) { res.sendFile(path.join(__dirname, '../dist/index.html')) }) + app.listen(3000, () => { console.log('Server started at port 3000') })