SvelteKit
Source:
src/Railway/Website/SvelteKit.ts
Deploy a SvelteKit application to Railway: kit’s SSR server plus
prerendered assets on one Railway.Service. The Node deploy target
injects an in-memory kit adapter; do not set adapter in kit.
During alchemy dev the site is SvelteKit’s own dev server and no cloud
resources are created. Alchemy.remote() opts back into the live
Service path.
Creating SvelteKit Sites
Section titled “Creating SvelteKit Sites”const site = yield* Railway.Website.SvelteKit("Web", { rootDir: "./app",});Server Configuration
Section titled “Server Configuration”const site = yield* Railway.Website.SvelteKit("Web", { rootDir: "./app", env: { API_BASE: "https://api.example.com", },});