best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
web/svelte: change public prefix to `WEB_`
dumbmoron8df4bc00cb42
diff --git a/web/src/lib/env.ts b/web/src/lib/env.tsindex c921c7ca..734f482d 100644--- a/web/src/lib/env.ts+++ b/web/src/lib/env.ts@@ -2,7 +2,7 @@ import * as _env from "$env/static/public";const getEnv = (_key: string) => {const env = _env as Record<string, string | undefined>;- const key = `PUBLIC_${_key}`;+ const key = `WEB_${_key}`;if (key in env) {return env[key];diff --git a/web/svelte.config.js b/web/svelte.config.jsindex 395288a8..b86956ed 100644--- a/web/svelte.config.js+++ b/web/svelte.config.js@@ -40,6 +40,9 @@ const config = {precompress: false,strict: true}),+ env: {+ publicPrefix: 'WEB_'+ },version: {pollInterval: 60000},