Option to specify vercel config file path in web UI #4359
-
Is there a currently a way to specify a path to the My user case: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Yes, you can specify the "Root Directory" for your project which should contain the https://vercel.com/blog/advanced-project-settings However, there are currently some limitations. When selecting the "Root Directory", all code above that directory is excluded. This means if you set We are working on better support for monorepos to support this use case. |
Beta Was this translation helpful? Give feedback.
-
That being said, why would |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help @styfle, I missed the Root Directory config option! I was playing around with mimicking the Netlify _redirects file URL shortener demo I've seen around but using the vercel.json file and vercel instead and wanted to see if I could make a public form whilst keeping the redirects that users have entered private. |
Beta Was this translation helpful? Give feedback.
-
Since you are using Next.js you can install the canary |
Beta Was this translation helpful? Give feedback.
-
Is there any updates on this issue? I also use a monorepo and I have 2 applications hosted on vercel, located in apps/app-1 and apps/app-2. Each one has its own vercel.json and a separate app in Vercel. Now, I use the monorepo's root directory as the project root in Vercel since I need to build the monorepo and then build the apps, since the apps use some shared libraries. Is there a way to specify just the config path in the dashboard? |
Beta Was this translation helpful? Give feedback.
Yes, you can specify the "Root Directory" for your project which should contain the
vercel.json
file.https://vercel.com/blog/advanced-project-settings
However, there are currently some limitations. When selecting the "Root Directory", all code above that directory is excluded. This means if you set
myapp
as the root directory with/myapp/vercel.json
as the config, you won't be able to use/example.js
or/lib/helper.js
, only/myapp/helper.js
.We are working on better support for monorepos to support this use case.