Request: Environment Variable for `VERCEL_CUSTOM_URL`

Requesting the addition of a VERCEL_CUSTOM_URL environment variable or similar to simplify access to the deployment URL across different environments at runtime.

This would allow applications to access the correct deployment URL without needing to implement custom logic for different environments.

In my prototype Vercel project, it would look something like this across environments:

Environment Branch VERCEL_CUSTOM_URL
Production production app.foo.com
Staging staging app.staging.foo.com
Preview main app.main.foo.com
Preview feature-branch app-git-feature-branch-foo-corp.vercel.app
Development Any git branch localhost:3000

This feature would enhance the usability of Vercel by allowing applications to easily access the correct deployment URL without needing to manage multiple environment variables or configurations.

1 Like

Hi @kaizen-insights-core, welcome to the Vercel Community!

Thanks for your valuable feedback. I’ve passed it on to the team.