refactor(biome): more format changes
This commit is contained in:
15
app/src/pkg/utils/corsController.ts
Normal file
15
app/src/pkg/utils/corsController.ts
Normal 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
|
||||
];
|
||||
Reference in New Issue
Block a user