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 },