Skip to content

feat(env): add environment variable inference #9670

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 18, 2024

Conversation

balazsorban44
Copy link
Member

Similar to next-auth, SvelteKit Auth will now support environment variable inference. Any AUTH_ prefiexed environment variables will be picked up, to simplify the configuration setup.

This also fixes #9436, checking for the building value from $app/environment to not fail builds that are using $env/dynamic/private.

Copy link

vercel bot commented Jan 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 18, 2024 9:34am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Jan 18, 2024 9:34am

Copy link
Member

@ndom91 ndom91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

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

Successfully merging this pull request may close these issues.

SvelteKit 2.0 Build Error - Cannot read values from $env/dynamic/private while prerendering
2 participants