Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prefixed url env for preview deploys on middleware #1198

Merged
merged 4 commits into from
May 9, 2023

Conversation

adamjmcgrath
Copy link
Contributor

馃搵 Changes

Add NEXT_PUBLIC_AUTH0_BASE_URL env var, which will be picked up when AUTH0_BASE_URL is not available.

This is useful when you want to assign a Vercel preview URL to the SDK's base URL in your .env.production.

The NEXT_PUBLIC_ prefix is required for Middleware because it evaluates the env vars at build time and

馃搸 References

https://nextjs.org/docs/pages/api-reference/edge#environment-variables
fixes #1106

@adamjmcgrath adamjmcgrath requested a review from a team as a code owner May 5, 2023 14:34
@vercel
Copy link

vercel bot commented May 5, 2023

The latest updates on your projects. Learn more about Vercel for Git 鈫楋笌

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nextjs-auth0 猬滐笍 Ignored (Inspect) May 5, 2023 3:43pm

@adamjmcgrath adamjmcgrath merged commit 81c800a into main May 9, 2023
6 checks passed
@adamjmcgrath adamjmcgrath deleted the preview-deploys-middleware branch May 9, 2023 08:38
@lostinpatterns
Copy link

awesome, thank you! we were just going to work on this. will you cut a new release with these commits?

@adamjmcgrath
Copy link
Contributor Author

Thanks @lostinpatterns - yep, 2.6.0 will go out today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants