0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

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 0fcd900508
commit 5d78d72212

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