feat: pivot to social media workflow app
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user