Skip to content

Commit

Permalink
Implemented check for NB_QUERY_CLIENT_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanaem committed Jul 12, 2024
1 parent ea1c916 commit 417edb8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export default defineConfig(({ mode }) => {
throw new Error(`Environment variable NB_API_QUERY_URL is not defined.`);
}

if (envVars.NB_ENABLE_AUTH && envVars.NB_ENABLE_AUTH.toLowerCase() === 'true') {
if (!envVars.NB_QUERY_CLIENT_ID) {
throw new Error('Environment variable NB_QUERY_CLIENT_ID is not defined.');
}
}

return {
preview: {
port: 5173,
Expand Down

0 comments on commit 417edb8

Please sign in to comment.