Astro Surf is a server side rendering library for Astro built with Axum
Astro Surf is a server side rendering library for Astro built with Axum
npm install astro-surf
or
yarn add astro-surf
import AstroSurf from "astro-surf";
import { handler as astroApp } from "./dist/server/entry.mjs";
async function main() {
console.log('Starting app...');
process.env.NODE_ENV = 'production';
let app = AstroSurf.initialize(astroApp, {
client_path: `${process.cwd()}/dist/client`
});
await app.serve(3000)
}
main();