Skip to content

Commit

Permalink
web/svelte: change public prefix to WEB_
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmoron committed Sep 9, 2024
1 parent ce7633c commit 8df4bc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/lib/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
3 changes: 3 additions & 0 deletions web/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ const config = {
precompress: false,
strict: true
}),
env: {
publicPrefix: 'WEB_'
},
version: {
pollInterval: 60000
},
Expand Down

0 comments on commit 8df4bc0

Please sign in to comment.