import { validateEnv } from "./envValidator.js"; const env = validateEnv(process.env); // export const allowedOrigins = [ // /^https?:\/\/localhost:(5173|5500|4200|3000|4000)$/, // all the allowed backend ports // /^http?:\/\/localhost:(5173|5500|4200|3000|4000)$/, // /^https?:\/\/.*\.alpla\.net$/, // env.BETTER_AUTH_URL, // prod // ]; export const allowedOrigins: (string | RegExp)[] = [ /^https?:\/\/localhost:(5173|5500|4200|3000|4000)$/, // all local dev ports /^https?:\/\/.*\.alpla\.net$/, // any subdomain of alpla.net env.BETTER_AUTH_URL, // production URL ];