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

17 lines
509 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');
// 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,
// }