export const ENV = {
  cookieSecret: process.env.JWT_SECRET ?? "",
  databaseUrl: process.env.DATABASE_URL ?? "",
  isProduction: process.env.NODE_ENV === "production",
  // Sub-path under which this app is served (e.g. "/app" when the cPanel
  // "Application URL" is "seu-dominio.com.br/app"). Leave empty when the
  // app is served from the domain root. Trailing slashes are stripped.
  basePath: (process.env.BASE_PATH ?? "").trim().replace(/\/+$/, ""),
};
