Skip to content

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.

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