Init vue and express in same container

This commit is contained in:
chamomind 2023-11-29 22:42:33 +07:00
parent 9800337ccd
commit 484ee1e549

View file

@ -27,6 +27,11 @@ RegisterRoutes(router);
app.use(swaggerSpecs.basePath, router);
app.use(errorHandler);
app.use(express.static('static'))
app.get('*',(req,res)=>{
res.sendFile(`${process.cwd()}/static/index.html`)
})
app.listen(PORT, "0.0.0.0", () =>
console.log(`[APP] Application is running on http://localhost:${PORT}`),
);