Skip to content

Nuxt

Source: src/Hetzner/Website/Nuxt.ts

Deploy a Nuxt application to a Hetzner Cloud Server: the nitro Node server as a systemd unit on port 3000, static assets baked into the unit.

The build runs through @alchemy.run/frontend-frameworks/nuxt with the @alchemy.run/frontend-frameworks/nuxt/node deploy target (nitro.preset "node").

Basic Nuxt App

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

Custom Domain

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