mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-28 04:20:12 +02: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…
x
Reference in New Issue
Block a user