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

[Feedback](/c/feedback/8)

# Feature Request: Automatic Environment URL for NEXT_PUBLIC_APP_URL

1907 views · 2 likes · 2 posts


Nav2924 (@nav2924) · 2024-11-09 · ♥ 1

**Description:** It would be helpful if `NEXT_PUBLIC_APP_URL` could automatically set itself based on the environment:

 Development: `http://localhost:3000`
 Production: Vercel-assigned URL (e.g., `https://your-production-url.vercel.app`)

**Benefit:** This would streamline deployments by eliminating the need to manually change this variable between environments, reducing potential configuration errors.

Thanks for considering this feature!


Pauline P. Narvas (@pawlean) · 2024-11-11 · ♥ 1

Thanks for sharing this feedback, @nav2924! I'll pass it on internally :smile: