Skip to content

Astro Surf is a server side rendering library for Astro built with Axum

Notifications You must be signed in to change notification settings

Aitthi/astro-surf

Repository files navigation

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

About

Astro Surf is a server side rendering library for Astro built with Axum

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published