Skip to content

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.

const site = yield* Railway.Website.SvelteKit("Web", {
rootDir: "./app",
});
const site = yield* Railway.Website.SvelteKit("Web", {
rootDir: "./app",
env: {
API_BASE: "https://api.example.com",
},
});