0.1.8 • Published 9 months ago

astro-surf v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Astro Surf

NPM version

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();