Support modifying vercel.json during build step #3323
Replies: 3 comments 2 replies
-
Hi @vinaypuppal, this is not something that's possible currently but may be added in the future. If using Next.js, you can do this with the |
Beta Was this translation helpful? Give feedback.
-
For folks looking for this, I think (will try next week) you can use the build output API instead: https://vercel.com/docs/build-output-api/v3 |
Beta Was this translation helpful? Give feedback.
-
Hey folks! This discussion is a couple of years old now, so there have certainly been some changes since it was originally posted. Edge Middleware available now. It lets you do things, like modifying headers or redirecting routes, in a more dynamic way than could be done with vercel.json configuration. |
Beta Was this translation helpful? Give feedback.
-
I am trying to add some headers to the
vercel.json
file in my build step but they were not picked up by Vercel. I am writing the vercel.json file to the root of the project, so do I need to place the modified vercel.json file in some other directory or this is not supported?Beta Was this translation helpful? Give feedback.
All reactions