Skip to content

Commit

Permalink
docs: add snippet for base option (#7384)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Jun 21, 2023
1 parent 3943fa3 commit 61d6e45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/integrations/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 61d6e45

Please sign in to comment.