astro-surf
v0.1.8
Published
Astro Surf is a server side rendering library for Astro built with Axum
Downloads
8
Readme
Astro Surf
Astro Surf is a server side rendering library for Astro built with Axum
Installation
npm install astro-surf
or
yarn add astro-surf
Usage
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();