Skip to content

Foldkit

Source: src/Fly/Website/Foldkit.ts

Deploy a Foldkit app to Fly. Foldkit apps are client-only Vite projects, so this is Vite with SPA fallback to index.html so deep links boot the app.

Foldkit app

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

Project in a subdirectory

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