Skip to content

Commit

Permalink
attempt: Get Vite to recognize env var
Browse files Browse the repository at this point in the history
  • Loading branch information
mizlan committed Mar 1, 2024
1 parent 8896f0f commit 9bc5b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firebase/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const getConfig = () => {
}
if (import.meta.env.VITE_DB === 'prod') {
// NOTE: Netlify secret
config = JSON.parse(import.meta.env.REACT_APP_FIREBASE_CONFIG);
config = JSON.parse(import.meta.env.VITE_FIREBASE_CONFIG);
}
return config;
};
Expand Down

0 comments on commit 9bc5b5e

Please sign in to comment.