Skip to content

Build manifest #2312

Open

Description

@pi0

When building Nitro-based projects, we can gather information about build/deployment and make it universally accessible with a unified API across deployment providers.

  • manifest.buildId: Auto-generated during the build
  • manifest.deploymentId: Can be set by the deployment provider (usually env variables)
  • manifest.timestampt: Time when the build started

It can be accessible in different contexts:

  • Via build-context using nitro.options.manifest.{buildId, deploymentId}
  • Via runtime config (useRuntimeConfig().nitro.manifest)
  • Via server build manifest file (.output/nitro.json)
  • Via an opt-in/customizable public manifest (.output/public/_nitro/builds/{buildId}.json) similar to Nuxt app manifest

It can be used for several purposes both for custom deployments but mainly for gracefully handling new deployments or provider-specific logic like vercel skew protection

Activity

  1. added
    enhancement
    discussion
    on Mar 25, 2024
  2. added and removed on Oct 17, 2026
  3. removed
    enhancement
    on Nov 10, 2026
  4. added theissue type on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussion

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions