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:
EBits00 2022-08-22 13:33:54 -03:00 committed by GitHub
parent 8264f85f1d
commit 8f20b18875
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);