chore(cors): update frontend URL to apoena.dev domain

This commit is contained in:
Julien Calixte
2026-04-22 14:11:59 +02:00
parent e1aa33fa7b
commit f2bd71183f

View File

@@ -5,7 +5,7 @@ const DEEPL_API_KEY = Deno.env.get("DEEPL_AUTH_KEY");
const BEARER_TOKEN = Deno.env.get("BEARER_TOKEN"); const BEARER_TOKEN = Deno.env.get("BEARER_TOKEN");
const PORT = parseInt(Deno.env.get("PORT") || "8000"); const PORT = parseInt(Deno.env.get("PORT") || "8000");
const DEEPL_API_BASE = "https://api-free.deepl.com/v2"; const DEEPL_API_BASE = "https://api-free.deepl.com/v2";
const FRONTEND_URLS = ["http://localhost", "https://deep-lite.netlify.app"]; const FRONTEND_URLS = ["http://localhost", "https://deeplite.apoena.dev"];
if (!DEEPL_API_KEY) { if (!DEEPL_API_KEY) {
console.error("ERROR: DEEPL_AUTH_KEY environment variable is required"); console.error("ERROR: DEEPL_AUTH_KEY environment variable is required");