diff --git a/.envrc b/.envrc index 65c2db3..c259c1e 100644 --- a/.envrc +++ b/.envrc @@ -1,3 +1,4 @@ use asdf +export VITE_SCOPE=dog18 export SCOPE=dog18 diff --git a/client/src/lib/config.ts b/client/src/lib/config.ts index f85507b..12eed5d 100644 --- a/client/src/lib/config.ts +++ b/client/src/lib/config.ts @@ -11,8 +11,8 @@ interface Config { verifServerUrl: string } -const scope = process.env.SCOPE ?? '' -if (scope === '') throw new Error('SCOPE is not defined') +const scope = import.meta.env.VITE_SCOPE ?? '' +if (scope === '') throw new Error('VITE_SCOPE is not defined') export const config: Config = { appName: scope,