2024-01-25 10:48:20 +02:00
|
|
|
import { env } from 'next-runtime-env';
|
|
|
|
|
|
2024-02-06 16:16:10 +11:00
|
|
|
export const APP_DOCUMENT_UPLOAD_SIZE_LIMIT =
|
|
|
|
|
Number(process.env.NEXT_PUBLIC_DOCUMENT_SIZE_UPLOAD_LIMIT) || 50;
|
2023-09-20 13:48:30 +10:00
|
|
|
|
2024-01-31 22:32:42 +11:00
|
|
|
export const NEXT_PUBLIC_WEBAPP_URL = () => env('NEXT_PUBLIC_WEBAPP_URL');
|
|
|
|
|
export const NEXT_PUBLIC_MARKETING_URL = () => env('NEXT_PUBLIC_MARKETING_URL');
|
2024-01-25 10:48:20 +02:00
|
|
|
|
2024-02-17 12:42:00 +11:00
|
|
|
export const IS_APP_MARKETING = process.env.NEXT_PUBLIC_PROJECT === 'marketing';
|
|
|
|
|
export const IS_APP_WEB = process.env.NEXT_PUBLIC_PROJECT === 'web';
|
2024-02-12 01:29:22 +00:00
|
|
|
export const IS_BILLING_ENABLED = () => env('NEXT_PUBLIC_FEATURE_BILLING_ENABLED') === 'true';
|
2023-09-20 13:48:30 +10:00
|
|
|
|
2024-02-17 12:42:00 +11:00
|
|
|
export const APP_FOLDER = () => (IS_APP_MARKETING ? 'marketing' : 'web');
|
2023-09-20 13:48:30 +10:00
|
|
|
|
2024-01-31 22:32:42 +11:00
|
|
|
export const APP_BASE_URL = () =>
|
2024-02-17 12:42:00 +11:00
|
|
|
IS_APP_WEB ? NEXT_PUBLIC_WEBAPP_URL() : NEXT_PUBLIC_MARKETING_URL();
|
2024-02-08 22:06:59 +11:00
|
|
|
|
|
|
|
|
export const WEBAPP_BASE_URL = NEXT_PUBLIC_WEBAPP_URL() ?? 'http://localhost:3000';
|
|
|
|
|
export const MARKETING_BASE_URL = NEXT_PUBLIC_MARKETING_URL() ?? 'http://localhost:3001';
|