Updated Express code to serve assets (#4402)
Assets where not served so the style was not applied, fixed this by adding the line app.use(express.static('dist/client/'))
This commit is contained in:
parent
8264f85f1d
commit
8f20b18875
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ import express from 'express';
|
|||
import { handler as ssrHandler } from './dist/server/entry.mjs';
|
||||
|
||||
const app = express();
|
||||
app.use(express.static('dist/client/'))
|
||||
app.use(ssrHandler);
|
||||
|
||||
app.listen(8080);
|
||||
|
|
Loading…
Reference in a new issue