Skip to content

Commit

Permalink
Merge branch 'feature/insights-gpt' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldemylla committed Mar 25, 2024
2 parents 4c258df + bb0c4fa commit 20b1d4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/env.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export default function env(name) {
return import.meta.env[name] || window?.configs?.[name];
return import.meta.env[name] ||
window?.configs?.[name] ||
process.env[name] ||
window?.configs?.[`VITE_${name}`] ||
process.env[`VITE_${name}`];
}

0 comments on commit 20b1d4f

Please sign in to comment.