Skip to content

Nuxt

Source: src/Fly/Website/Nuxt.ts

Deploy a Nuxt application to Fly: the nitro Node server on a Machine, static assets (prerendered pages included) baked into the image.

Basic Nuxt App

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

Custom Domain

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