Skip to content

Octane

Source: src/Hetzner/Website/Octane.ts

Deploy an OctaneJS application to a Hetzner Cloud Server: Octane’s SSR server as a systemd unit on port 3000, static assets baked into the unit.

The project’s octane.config.ts must select the Node marker adapter:

import { node } from "@alchemy.run/frontend-frameworks/octane/node-adapter";
import { defineConfig } from "@octanejs/vite-plugin";
export default defineConfig({
adapter: node(),
});

Basic Octane App

const site = yield* Hetzner.Website.Octane("Web", {
rootDir: "./app",
});

Custom Domain

const site = yield* Hetzner.Website.Octane("Web", {
rootDir: "./app",
domain: "app.example.com",
zone,
});