refactor(biome): more format changes

This commit is contained in:
2025-10-15 14:51:20 -05:00
parent dbe84d5325
commit 255ceaab85
6 changed files with 292 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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
];