Skip to content

Vocs

Source: src/Railway/Website/Vocs.ts

Deploy a Vocs documentation project to Railway: static assets first, then Vocs’ Waku RSC handler (/about not /about/) from one Railway.Service.

Requires @alchemy.run/frontend-frameworks, vocs, and Vocs’ Waku peer dependencies in the project.

During alchemy dev the site is Vocs’ own dev server and no cloud resources are created. Alchemy.remote() opts back into the live Service path.

const docs = yield* Railway.Website.Vocs("Docs", {
rootDir: "./docs",
});
// vocs.config.ts: defineConfig({ outDir: "build" })
const docs = yield* Railway.Website.Vocs("Docs", {
rootDir: "./docs",
outDir: "build",
});