fp/services/next/app/config/clientConfigs.ts

22 lines
928 B
TypeScript
Raw Normal View History

2024-12-12 07:23:46 +00:00
if (!process.env.NEXT_PUBLIC_API_DOMAIN) throw new Error('Missing NEXT_PUBLIC_API_DOMAIN env var');
if (!process.env.NEXT_PUBLIC_WEBSITE_DOMAIN) throw new Error('Missing NEXT_PUBLIC_WEBSITE_DOMAIN env var');
2024-12-16 20:39:23 +00:00
if (!process.env.NEXT_PUBLIC_UPPY_COMPANION_URL) throw new Error('Missing NEXT_PUBLIC_UPPY_COMPANION_URL env var');
if (!process.env.NEXT_PUBLIC_SITE_URL) throw new Error('Missing NEXT_PUBLIC_SITE_URL env var');
if (!process.env.NEXT_PUBLIC_STRAPI_URL) throw new Error('Missing NEXT_PUBLIC_STRAPI_URL env var');
if (!process.env.NEXT_PUBLIC_POSTGREST_URL) throw new Error('Missing NEXT_PUBLIC_POSTGREST_URL env var');
2024-12-12 07:23:46 +00:00
// const apiDomain = process.env.NEXT_PUBLIC_API_DOMAIN!
// const websiteDomain = process.env.NEXT_PUBLIC_WEBSITE_DOMAIN!
// export interface ClientConfig {
// apiDomain: string;
// websiteDomain: string;
// }
// export const configs: ClientConfig = {
// apiDomain,
// websiteDomain,
// }