Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/mayask/astro-ssr-react-express. Astro SSR example in moddleware mode with node and express integrat
Something went wrong. Try again.
1234567891011121314151617import express from 'express';import { handler as ssrHandler } from '../dist/server/entry.mjs';
const app = express();
// serve static assetsapp.use('/', express.static('dist/client/'));
// app.use(auth);
app.use((req, res, next) => { ssrHandler(req, res, next, res.locals)});
app.listen(4321);
console.log("site is available at http://localhost:4321")