Files
social-media/frontend/src/config.js
Jonathan Bourdon df3e602015
Some checks failed
Backend CI/CD / build_and_deploy (push) Has been cancelled
Frontend CI/CD / build_and_deploy (push) Has been cancelled
feat: pivot to social media workflow app
2026-04-24 12:58:35 -04:00

19 lines
432 B
JavaScript

function getRequiredEnv(name) {
const value = import.meta.env[name];
if (!value) {
throw new Error(`${name} is not provided`);
}
return value;
}
const config = Object.freeze({
apiUrl: getRequiredEnv('VITE_API_URL'),
googleClientId: getRequiredEnv('VITE_GOOGLE_CLIENT_ID'),
facebookAppId: getRequiredEnv('VITE_FACEBOOK_APP_ID'),
stripeApiKey: getRequiredEnv('VITE_STRIPE_API_KEY'),
});
export default config;