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