Skip to content

Foldkit

Source: src/Hetzner/Website/Foldkit.ts

Deploy a Foldkit app to a Hetzner Cloud Server.

Foldkit apps are client-only Vite projects, so this composite is the Vite site with SPA fallback to index.html (deep links boot the app and the Foldkit router takes over).

Foldkit App

const site = yield* Hetzner.Website.Foldkit("Website");

Project in a Subdirectory

const site = yield* Hetzner.Website.Foldkit("Website", {
rootDir: "applications/web",
});
const site = yield* Hetzner.Website.Foldkit("Website", {
assets: { notFoundHandling: "404-page" },
});