forked from coracle/flotilla
Move from .env to .env.local
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# Env
|
||||
.env
|
||||
.env.local
|
||||
|
||||
# Vite
|
||||
vite.config.js.timestamp-*
|
||||
|
||||
@@ -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",
|
||||
|
||||
+1
-1
@@ -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
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user