[PR #161] [MERGED] feat: resolve sveltekit $env modules, add lib/server to possible config paths #20033

Closed
opened 2026-04-15 19:25:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/161
Author: @enchart
Created: 10/13/2024
Status: Merged
Merged: 10/13/2024
Merged by: @Bekacru

Base: mainHead: main


📝 Commits (4)

  • 7b1e3b1 chore: update c12 to 2.0.1
  • 5fe8455 feat: resolve sveltekit $env modules
  • 438e8b4 feat: add lib/server to possible config paths
  • a4648a1 chore: fix formatting

📊 Changes

4 files changed (+215 additions, -73 deletions)

View changed files

📝 packages/better-auth/package.json (+1 -1)
📝 packages/better-auth/src/cli/get-config.ts (+3 -0)
packages/better-auth/src/cli/utils/add-svelte-kit-env-modules.ts (+108 -0)
📝 pnpm-lock.yaml (+103 -72)

📄 Description

This is a temporary (?) fix that resolves the $env modules of SvelteKit and provides the environment variables from the project's .env file and process.env, removing the need of temporarily removing the imports for these modules to be able to use the generate and migrate CLI commands.
This PR also has another small change, which adds lib/server to a list of possible paths of the auth config file.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/161 **Author:** [@enchart](https://github.com/enchart) **Created:** 10/13/2024 **Status:** ✅ Merged **Merged:** 10/13/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (4) - [`7b1e3b1`](https://github.com/better-auth/better-auth/commit/7b1e3b11c391c5dd913c0838a74f064fb3cd8f12) chore: update c12 to 2.0.1 - [`5fe8455`](https://github.com/better-auth/better-auth/commit/5fe845581f499de132ea39ede7d8c06bc6e3cf2f) feat: resolve sveltekit $env modules - [`438e8b4`](https://github.com/better-auth/better-auth/commit/438e8b40730d40ac92604e6b3ad9b092c4e44107) feat: add lib/server to possible config paths - [`a4648a1`](https://github.com/better-auth/better-auth/commit/a4648a1c7fa3bd5ff6fcff91ecd59bdca3f0e51a) chore: fix formatting ### 📊 Changes **4 files changed** (+215 additions, -73 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/package.json` (+1 -1) 📝 `packages/better-auth/src/cli/get-config.ts` (+3 -0) ➕ `packages/better-auth/src/cli/utils/add-svelte-kit-env-modules.ts` (+108 -0) 📝 `pnpm-lock.yaml` (+103 -72) </details> ### 📄 Description This is a temporary (?) fix that resolves the `$env` modules of SvelteKit and provides the environment variables from the project's `.env` file and `process.env`, removing the need of temporarily removing the imports for these modules to be able to use the `generate` and `migrate` CLI commands. This PR also has another small change, which adds `lib/server` to a list of possible paths of the auth config file. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 19:25:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#20033