feat: pivot to social media workflow app
Some checks failed
Backend CI/CD / build_and_deploy (push) Has been cancelled
Frontend CI/CD / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-04-24 12:58:35 -04:00
parent 0f4acc1b6d
commit df3e602015
349 changed files with 18685 additions and 16010 deletions

View File

@@ -1,7 +1,18 @@
// Environment-specific configuration
const config = {
baseUrl: import.meta.env.VITE_APP_BASE_URL || 'https://hutopy.ca',
apiUrl: import.meta.env.VITE_APP_API_URL || 'https://hutopy.ca/api',
};
function getRequiredEnv(name) {
const value = import.meta.env[name];
export default config;
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;