Skip to content

Astro Adapter

The Astro Adapter in Kiln turns Astro SSR applications into standalone binaries with native asset extraction and fast server startup.


  • Astro 5.x & Astro 7.x
  • @astrojs/node standalone output
  • SSR, Hybrid, and Static Prerendered Routes

Install @astrojs/node:

Terminal window
bun add @astrojs/node
bun add -d kiln-compiler

In your astro.config.mjs:

import { defineConfig } from "astro/config";
import node from "@astrojs/node";
export default defineConfig({
output: "server",
adapter: node({ mode: "standalone" }),
});

In your package.json:

"scripts": {
"build": "astro build",
"compile": "kiln -o ./bin/app",
"build:compile": "astro build && kiln -o ./bin/app"
}

Compile and run:

Terminal window
bun run build:compile
./bin/app

The application will start listening on http://0.0.0.0:4321 (or PORT environment variable).