export const ENV = {
  appId: process.env.VITE_APP_ID ?? "",
  cookieSecret: process.env.JWT_SECRET ?? "",
  databaseUrl: process.env.DATABASE_URL ?? "",
  oAuthServerUrl: process.env.OAUTH_SERVER_URL ?? "",
  ownerOpenId: process.env.OWNER_OPEN_ID ?? "",
  isProduction: process.env.NODE_ENV === "production",
  anthropicApiKey: process.env.ANTHROPIC_API_KEY ?? "",
  erpApiUrl: process.env.ERP_API_URL ?? "http://127.0.0.1:8080",
  erpApiKey: process.env.ERP_API_KEY ?? "",
  dealerPortalSsoSecret: process.env.DEALER_PORTAL_SSO_SECRET ?? "",
};

if (process.env.NODE_ENV === "production" && !process.env.ERP_API_KEY) {
  console.warn("[ENV] WARNING: ERP_API_KEY is not set — ERP features will be disabled");
}
