Skip to content

SvelteKit

Source: src/Fly/Website/SvelteKit.ts

Deploy a SvelteKit application to Fly: kit’s SSR server on a Machine, static assets baked into the image, served assets-first then the framework handler.

Basic SvelteKit App

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

Custom Domain

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