docs: add snippet for base
option (#7384)
This commit is contained in:
parent
3943fa390a
commit
61d6e45cef
1 changed files with 4 additions and 1 deletions
|
@ -92,7 +92,10 @@ import express from 'express';
|
|||
import { handler as ssrHandler } from './dist/server/entry.mjs';
|
||||
|
||||
const app = express();
|
||||
app.use(express.static('dist/client/'))
|
||||
// Change this based on your astro.config.mjs, `base` option.
|
||||
// They should match. The default value is "/".
|
||||
const base = "/";
|
||||
app.use(base, express.static('dist/client/'))
|
||||
app.use(ssrHandler);
|
||||
|
||||
app.listen(8080);
|
||||
|
|
Loading…
Reference in a new issue