Skip to content

fix(better-auth): manage $app/env#1150

Merged
manuel3108 merged 2 commits into
mainfrom
fix/better-auth-app-env
Jun 26, 2026
Merged

fix(better-auth): manage $app/env#1150
manuel3108 merged 2 commits into
mainfrom
fix/better-auth-app-env

Conversation

@jycouet

@jycouet jycouet commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Closes #

Description

When explicitEnvironmentVariables is enabled (declared env mode), $app/env is the alias of $app/environment. The better-auth add-on now imports building from $app/env in that mode, and from $app/environment otherwise.

Checklist

  • Update snapshots (if applicable)
  • Add a changeset (if applicable)
  • Allow maintainers to edit this PR
  • I care about what I'm doing, no matter the tool I use (Notepad, Sublime, VSCode, AI...)

@changeset-bot

changeset-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c510671

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
sv Patch
@sveltejs/sv-utils Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

Resolves $app/env (declared) vs $app/environment (legacy) in one place so addons don't branch on mode. better-auth's building import now uses it.
@manuel3108 manuel3108 merged commit feff120 into main Jun 26, 2026
6 checks passed
@manuel3108 manuel3108 deleted the fix/better-auth-app-env branch June 26, 2026 03:33
@github-actions github-actions Bot mentioned this pull request Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants