Skip to content

Octane

Source: src/Fly/Website/Octane.ts

Deploy an OctaneJS application to Fly: Octane’s SSR server on a Machine, static assets baked into the image.

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* Fly.Website.Octane("Web", {
rootDir: "./app",
});

Custom Domain

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