[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Feedback](/c/feedback/8)

# NEXT_PUBLIC_APP_URL before deploying

571 views · 1 like · 4 posts


Midego1 (@midego1) · 2025-04-21

Be able to create a NEXT_PUBLIC_APP_URL before deploying.
Now its such a hassle to fix this where I think it can be easily workaround.

![image|505x500](upload://7bVJDYtYaREpz4T7cTeDD8wChrn.png)


Anshuman Bhardwaj (@anshumanb) · 2025-04-21

Hi @midego1, I understand your use case. For this the custom domain setup is best. However, you can always go to the Vercel Project and copy the domain for this project (even choose a custom `.vercel.app` domain).


Midego1 (@midego1) · 2025-04-21

But this will not be available if you cannot deploy, correct?


Anshuman Bhardwaj (@anshumanb) · 2025-04-21 · ♥ 1

You should be able to add custom Vercel domain to the project even for failed builds. Can you try and share if that works.