Aitthi / astro-surf

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Rust 71.0%Language:JavaScript 29.0%