Move from .env to .env.local

This commit is contained in:
Jon Staab
2026-03-06 13:58:03 -08:00
parent e6b291cc68
commit 16c6015919
6 changed files with 8 additions and 6 deletions
+1
View File
@@ -1,5 +1,6 @@
# Env
.env
.env.local
# Vite
vite.config.js.timestamp-*
+2 -2
View File
@@ -5,8 +5,8 @@ temp_env=$(declare -p -x)
if [ -f .env.template ]; then
source .env.template
fi
if [ -f .env ]; then
source .env
if [ -f .env.local ]; then
source .env.local
fi
# Avoid overwriting env vars provided directly
+1 -1
View File
@@ -1,7 +1,7 @@
import dotenv from "dotenv"
import {defineConfig, minimalPreset as preset} from "@vite-pwa/assets-generator/config"
dotenv.config({path: ".env"})
dotenv.config({path: ".env.local"})
dotenv.config({path: ".env.template"})
export default defineConfig({
+2 -1
View File
@@ -59,7 +59,8 @@
const setupRes = await client.setupRecovery(email, password)
if (!setupRes.ok) {
const message = setupRes.messages.find(m => m.res && !m.res?.ok)?.res?.message || "Please try again."
const message =
setupRes.messages.find(m => m.res && !m.res?.ok)?.res?.message || "Please try again."
return pushToast({
theme: "error",
+1 -1
View File
@@ -2,7 +2,7 @@ import {config} from "dotenv"
import daisyui from "daisyui"
import themes from "daisyui/src/theming/themes"
config({path: ".env"})
config({path: ".env.local"})
config({path: ".env.template"})
/** @type {import('tailwindcss').Config} */
+1 -1
View File
@@ -4,7 +4,7 @@ import {SvelteKitPWA} from "@vite-pwa/sveltekit"
import {sveltekit} from "@sveltejs/kit/vite"
import svg from "@poppanator/sveltekit-svg"
config({path: ".env"})
config({path: ".env.local"})
config({path: ".env.template"})
export default defineConfig({