forked from coracle/flotilla
Move from .env to .env.local
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
# Env
|
# Env
|
||||||
.env
|
.env
|
||||||
|
.env.local
|
||||||
|
|
||||||
# Vite
|
# Vite
|
||||||
vite.config.js.timestamp-*
|
vite.config.js.timestamp-*
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ temp_env=$(declare -p -x)
|
|||||||
if [ -f .env.template ]; then
|
if [ -f .env.template ]; then
|
||||||
source .env.template
|
source .env.template
|
||||||
fi
|
fi
|
||||||
if [ -f .env ]; then
|
if [ -f .env.local ]; then
|
||||||
source .env
|
source .env.local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Avoid overwriting env vars provided directly
|
# Avoid overwriting env vars provided directly
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import dotenv from "dotenv"
|
import dotenv from "dotenv"
|
||||||
import {defineConfig, minimalPreset as preset} from "@vite-pwa/assets-generator/config"
|
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"})
|
dotenv.config({path: ".env.template"})
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|||||||
@@ -59,7 +59,8 @@
|
|||||||
const setupRes = await client.setupRecovery(email, password)
|
const setupRes = await client.setupRecovery(email, password)
|
||||||
|
|
||||||
if (!setupRes.ok) {
|
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({
|
return pushToast({
|
||||||
theme: "error",
|
theme: "error",
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ import {config} from "dotenv"
|
|||||||
import daisyui from "daisyui"
|
import daisyui from "daisyui"
|
||||||
import themes from "daisyui/src/theming/themes"
|
import themes from "daisyui/src/theming/themes"
|
||||||
|
|
||||||
config({path: ".env"})
|
config({path: ".env.local"})
|
||||||
config({path: ".env.template"})
|
config({path: ".env.template"})
|
||||||
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import {SvelteKitPWA} from "@vite-pwa/sveltekit"
|
|||||||
import {sveltekit} from "@sveltejs/kit/vite"
|
import {sveltekit} from "@sveltejs/kit/vite"
|
||||||
import svg from "@poppanator/sveltekit-svg"
|
import svg from "@poppanator/sveltekit-svg"
|
||||||
|
|
||||||
config({path: ".env"})
|
config({path: ".env.local"})
|
||||||
config({path: ".env.template"})
|
config({path: ".env.template"})
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|||||||
Reference in New Issue
Block a user