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:
parent
0fcd900508
commit
5d78d72212
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…
Add table
Reference in a new issue