mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
use PUBLIC_ENVIRONMENT
This commit is contained in:
1 parent
408417ca68
commit
ab87282103
3 files changed
+3
-11
No files matched your search
@@ -23,7 +23,7 @@ for (const key in environments) {
|
||||
}
|
||||
|
||||
export function environmentConfig() {
|
||||
const environment = assertSecret(import.meta.env.ENVIRONMENT);
|
||||
const environment = assertSecret(import.meta.env.PUBLIC_ENVIRONMENT);
|
||||
|
||||
if (!(environment in environments)) {
|
||||
throw new Error(`Invalid environment "${environment}"`);
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
export const ENVIRONMENTS = [
|
||||
'lobby',
|
||||
'apartment',
|
||||
'warehouse',
|
||||
'dawn',
|
||||
'sunset',
|
||||
] as const;
|
||||
Reference in new issue
Block a user