diff --git a/.env b/.env.template similarity index 93% rename from .env rename to .env.template index d2989ec0..5ebcad79 100644 --- a/.env +++ b/.env.template @@ -10,5 +10,7 @@ VITE_PLATFORM_ACCENT="#7161FF" VITE_PLATFORM_DESCRIPTION="Flotilla is nostr — for communities." VITE_INDEXER_RELAYS=wss://purplepag.es/,wss://relay.damus.io/,wss://relay.nostr.band/ VITE_SIGNER_RELAYS=wss://relay.nsec.app/,wss://bucket.coracle.social/ +VITE_NOTIFIER_PUBKEY=27b7c2ed89ef78322114225ea3ebf5f72c7767c2528d4d0c1854d039c00085df +VITE_NOTIFIER_RELAY=wss://anchor.coracle.social/ VITE_GLITCHTIP_API_KEY= GLITCHTIP_AUTH_TOKEN= diff --git a/build.sh b/build.sh index 49b3d1fb..06f2c808 100755 --- a/build.sh +++ b/build.sh @@ -2,8 +2,8 @@ temp_env=$(declare -p -x) -if [ -f .env ]; then - source .env +if [ -f .env.template ]; then + source .env.template fi if [ -f .env.local ]; then diff --git a/pwa-assets.config.js b/pwa-assets.config.js index 64ac8346..38d3c1c4 100644 --- a/pwa-assets.config.js +++ b/pwa-assets.config.js @@ -2,7 +2,7 @@ import dotenv from "dotenv" import {defineConfig, minimalPreset as preset} from "@vite-pwa/assets-generator/config" dotenv.config({path: ".env.local"}) -dotenv.config({path: ".env"}) +dotenv.config({path: ".env.template"}) export default defineConfig({ preset, diff --git a/src/app/state.ts b/src/app/state.ts index 738fb88f..e2d38598 100644 --- a/src/app/state.ts +++ b/src/app/state.ts @@ -79,10 +79,9 @@ export const ALERT = 32830 export const ALERT_STATUS = 32831 -export const NOTIFIER_PUBKEY = "27b7c2ed89ef78322114225ea3ebf5f72c7767c2528d4d0c1854d039c00085df" +export const NOTIFIER_PUBKEY = import.meta.env.VITE_NOTIFIER_PUBKEY -// export const NOTIFIER_RELAY = 'wss://notifier.flotilla.social/' -export const NOTIFIER_RELAY = "ws://localhost:4738/" +export const NOTIFIER_RELAY = import.meta.env.VITE_NOTIFIER_RELAY export const INDEXER_RELAYS = fromCsv(import.meta.env.VITE_INDEXER_RELAYS) diff --git a/tailwind.config.js b/tailwind.config.js index 30f06f57..8793e77d 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -3,7 +3,7 @@ import daisyui from "daisyui" import themes from "daisyui/src/theming/themes" config({path: ".env.local"}) -config({path: ".env"}) +config({path: ".env.template"}) /** @type {import('tailwindcss').Config} */ export default { diff --git a/vite.config.ts b/vite.config.ts index 74ddeadb..d2ca227e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,7 +5,7 @@ import {sveltekit} from "@sveltejs/kit/vite" import svg from "@poppanator/sveltekit-svg" config({path: ".env.local"}) -config({path: ".env"}) +config({path: ".env.template"}) export default defineConfig({ server: {