web/svelte: change public prefix to WEB_

This commit is contained in:
dumbmoron 2024-09-09 15:11:08 +00:00
parent ce7633c81a
commit 8df4bc00cb
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View file

@ -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];

View file

@ -40,6 +40,9 @@ const config = {
precompress: false,
strict: true
}),
env: {
publicPrefix: 'WEB_'
},
version: {
pollInterval: 60000
},