Skip to content

Commit

Permalink
fix(client): append VITE_ to client env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Sep 6, 2024
1 parent 7bc462e commit 098858f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use asdf

export VITE_SCOPE=dog18
export SCOPE=dog18
4 changes: 2 additions & 2 deletions client/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 098858f

Please sign in to comment.