#Where to specify `deploymentId` in `next.config.js`?

2 messages · Page 1 of 1 (latest)

hidden rose
#

(Background: I'm using the /pages router)

I saw that Next.js can help with version skew issues if I specify deploymentId in my next.config.js file. It's mentioned here under the "Version skew" section of the docs: https://nextjs.org/docs/pages/building-your-application/deploying#version-skew

You can manually configure the deploymentId property in your next.config.js file to ensure each request uses either ?dpl query string or x-deployment-id header.

I looked at the docs for the config file (https://nextjs.org/docs/pages/api-reference/next-config-js), but I couldn't find where to put deploymentId.

Any suggestions? Thanks!

Learn how to deploy your Next.js app to production, either managed or self-hosted.

balmy trenchBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)