From 8df4bc00cb42eac2d3082dec8e5dcaad16ea1632 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Mon, 9 Sep 2024 15:11:08 +0000 Subject: [PATCH] web/svelte: change public prefix to `WEB_` --- web/src/lib/env.ts | 2 +- web/svelte.config.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/lib/env.ts b/web/src/lib/env.ts index 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; - 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.js index 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 },