const apiUrl: string = import.meta.env.VITE_API_URL;
const authentikUrl: string = import.meta.env.AUTHENTIK_URL || 'https://auth.firesuite.feuerwehr-rems.at';
const clientId: string = import.meta.env.AUTHENTIK_CLIENT_ID;

if (!apiUrl) {
  console.error('Missing required environment variable: VITE_API_URL');
}
if (!clientId) {
  console.error('Missing required environment variable: AUTHENTIK_CLIENT_ID');
}

export const config = {
  apiUrl,
  authentikUrl,
  clientId,
};

export const API_URL = config.apiUrl;
export const AUTHENTIK_URL = config.authentikUrl;
export const CLIENT_ID = config.clientId;
