Skip to content

feat: add manifest.deploymentId - #3802

Closed
danielroe wants to merge 1 commit into
v2from
feat/manifest-deployment-id
Closed

danielroe wants to merge 1 commit into
v2from
feat/manifest-deployment-id

Conversation

@danielroe

Copy link
Copy Markdown
Member

🔗 Linked issue

backport of #3792

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

this backports #3792

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe
danielroe requested a review from pi0 as a code owner November 18, 2025 12:04
@vercel

vercel Bot commented Nov 18, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
nitro.build Ready Ready Preview Comment Nov 18, 2025 0:05am

@danielroe danielroe changed the title feat: add manifest.deploymentId (#3792) feat: add manifest.deploymentId Nov 18, 2025
@pi0

pi0 commented Nov 18, 2025 •

Copy link
Copy Markdown
Member

What would be benefit of this backport without agnostic skew detection support in v2?

I think would probably be more valuable if we add this flag to std-env (tracker: unjs/std-env#59)

@danielroe

Copy link
Copy Markdown
Member Author

I would hope to also merge skew protection back into the vercel preset.

(and likewise for netlify!)

@pi0

pi0 commented Dec 9, 2025 •

Copy link
Copy Markdown
Member

I would hope to also merge skew protection back into the vercel preset.

(as we discussed) Skew-protection will be a vendor+framework, specific feature if we backport to v2 (similar to ISR route rule) since Nitro v2 cannot have client-side logic.

If Nuxt does not migrate soon to Nitro v3, we need to find a temporary solution for Nuxt specifically to support skew protection (in 2 vendors)


Even if we want to backport a feature for Vercel/Netlify unblocking Nuxt v4, I think we can directly use the deployment ID hardcoded in them.

As for this PR, i appreciate if you have time to help porting it to std-env. It has no use for Nitro v2.

@pi0 pi0 closed this Dec 9, 2025
@danielroe

Copy link
Copy Markdown
Member Author

having investigated, I am not sure that deploymentId is implemented by enough providers to port to std-env.

I also agree (for this reason) that hard-coding the environment variables is a better solution for skew protection within nitro (as it's very specific to individual providers at the moment).

I would really like to see a generic solution but haven't yet figured out how to do it, with the primitives we have available in nitro.

@pi0

pi0 commented Dec 9, 2025

Copy link
Copy Markdown
Member

For the Nitro (v3) roadmap, a generic deploymentId (via std-env instead of hardcoding in nitro presets) and skew protection (via vite client utils) are sensible but i guess both won't directly benefit Nuxt.

@danielroe

Copy link
Copy Markdown
Member Author

what do you mean that these features won't benefit nuxt?

@pi0
pi0 deleted the feat/manifest-deployment-id branch December 9, 2025 20:01
@pi0

pi0 commented Dec 9, 2025

Copy link
Copy Markdown
Member

client implementation.

This branch was successfully deployed

1 active deployment
Preview — ab7136f2 Deployed Nov 18, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants