Move from .env to .env.local
This commit is contained in:
parent
e6b291cc68
commit
16c6015919
6 changed files with 8 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,5 +1,6 @@
|
|||
# Env
|
||||
.env
|
||||
.env.local
|
||||
|
||||
# Vite
|
||||
vite.config.js.timestamp-*
|
||||
|
|
|
|||
4
build.sh
4
build.sh
|
|
@ -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,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({
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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} */
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue