web/svelte: change public prefix to WEB_
This commit is contained in:
parent
ce7633c81a
commit
8df4bc00cb
2 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,7 @@ import * as _env from "$env/static/public";
|
||||||
|
|
||||||
const getEnv = (_key: string) => {
|
const getEnv = (_key: string) => {
|
||||||
const env = _env as Record<string, string | undefined>;
|
const env = _env as Record<string, string | undefined>;
|
||||||
const key = `PUBLIC_${_key}`;
|
const key = `WEB_${_key}`;
|
||||||
|
|
||||||
if (key in env) {
|
if (key in env) {
|
||||||
return env[key];
|
return env[key];
|
||||||
|
|
|
@ -40,6 +40,9 @@ const config = {
|
||||||
precompress: false,
|
precompress: false,
|
||||||
strict: true
|
strict: true
|
||||||
}),
|
}),
|
||||||
|
env: {
|
||||||
|
publicPrefix: 'WEB_'
|
||||||
|
},
|
||||||
version: {
|
version: {
|
||||||
pollInterval: 60000
|
pollInterval: 60000
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue