mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
web/svelte: change public prefix to WEB_
This commit is contained in:
parent
ce7633c81a
commit
8df4bc00cb
|
@ -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];
|
||||
|
|
|
@ -40,6 +40,9 @@ const config = {
|
|||
precompress: false,
|
||||
strict: true
|
||||
}),
|
||||
env: {
|
||||
publicPrefix: 'WEB_'
|
||||
},
|
||||
version: {
|
||||
pollInterval: 60000
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue