zephyr-nuxt-module

Nuxt module for deploying Nuxt applications with Zephyr Cloud
11,127 22
Install
npm install zephyr-nuxt-module
Latest Version:1.7.0
Vue:3
License:Apache-2.0
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: zackarychapple

Zephyr Nuxt Module

A Nuxt module for deploying Nuxt applications with Zephyr Cloud. It uploads the Nitro build output to Zephyr during nuxt build.

Installation

# npm
npm install --save-dev zephyr-nuxt-module

# yarn
yarn add --dev zephyr-nuxt-module

# pnpm
pnpm add --dev zephyr-nuxt-module

# bun
bun add --dev zephyr-nuxt-module

AI Agent Skills (Optional)

This package ships the zephyr-nuxt Agent Skill for AI coding agents, together with the shared zephyr-core and zephyr-module-federation guides. The skills are versioned with the package, so your agent reads guidance that matches the release you installed.

Zephyr does not need Intent at runtime. Coding agents only find these skills after you opt in with TanStack Intent:

pnpm add -D @tanstack/intent
pnpm dlx @tanstack/intent@latest install

Allow zephyr-nuxt-module when install asks. Intent saves that choice in the intent.skills allowlist in your package.json. To check or load the skill yourself:

pnpm exec intent list
pnpm exec intent load 'zephyr-nuxt-module#zephyr-nuxt'

Usage

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['zephyr-nuxt-module'],
});

Options

export default defineNuxtConfig({
  modules: ['zephyr-nuxt-module'],
  zephyr: {
    // Publish a TAP package rather than the default web artifact
    target: 'tap-app',
    // JSON-serializable metadata from the package SDK
    mfConfigs: [
      { name: 'desktop', filename: 'targets/desktop/remoteEntry.mjs' },
      { name: 'quickjs', filename: 'targets/quickjs/remoteEntry.mjs' },
    ],
    federation: [
      { name: 'desktop', remote: 'targets/desktop/remoteEntry.mjs' },
      { name: 'quickjs', remote: 'targets/quickjs/remoteEntry.mjs' },
    ],
    // Override Nitro output dir (defaults to nitro.options.output.dir)
    outputDir: '.output',
    // Explicit SSR entrypoint (relative to outputDir)
    entrypoint: 'server/index.mjs',
    // Force snapshot type: 'ssr' or 'csr'
    snapshotType: 'ssr',
    // Optional Zephyr build hooks
    // hooks: { onDeployComplete(info) { ... } }
  },
});

Notes

  • If no entrypoint is found, the module falls back to a CSR snapshot.
  • Entry points are auto-detected from server/index.mjs, server/index.js, or server/index.cjs when not provided.
  • Upload logic is skipped during nuxt prepare (including postinstall hooks).
  • For target: 'tap-app', mfConfigs and federation are required, non-empty arrays. Each unique config name and filename must match a metadata entry's name and remote; the module fails before upload when that pairing is incomplete. It forwards this caller-provided SDK metadata unchanged. For non-TAP builds the fields remain optional. A complete singleton config also fills the legacy mfConfig snapshot field.

License

Licensed under the Apache-2.0 License. See LICENSE.

Related Packages

nuxt-request-context

Provide typed request-specific data to Nuxt before the initial render.

979 1
nuxt-hydration-gate

Mark Nuxt app hydration with a DOM attribute for CSS, scripts, and end-to-end te...

211 0
@verbaly/nuxt

Nuxt integration for Verbaly: zero-config module with per-request locale negotia...

8,706 4
@vitral/nuxt

The Nuxt module for Vitral: the plugin from nuxt.config, auto-imported component...

2,999 3
@trevor-okwirri/nuxt-query

TanStack Query for Nuxt with SSR hydration and auto-imported composables

686 0

Version History

Version Released License
1.7.0 Apache-2.0
1.6.0 Apache-2.0
1.5.0 Apache-2.0
1.4.2 Apache-2.0
1.4.1 Apache-2.0
Pre-releases (42)
Version Released License
1.2.2-next.1 Apache-2.0
1.2.1-next.1 Apache-2.0
1.2.0-next.1 Apache-2.0
1.1.2-next.1 Apache-2.0
1.1.1-next.1 Apache-2.0