From 5e283e358be9340e108955829d59f6ac39b756e4 Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Thu, 11 Jan 2024 19:32:39 +0000 Subject: [PATCH] Added CORS as .env var --- next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 3b287828..6eefe6ab 100644 --- a/next.config.js +++ b/next.config.js @@ -8,7 +8,7 @@ const nextConfig = { source: "/api/packages", headers: [ { key: "Access-Control-Allow-Credentials", value: "false" }, - { key: "Access-Control-Allow-Origin", value: "http://localhost:3000" }, + { key: "Access-Control-Allow-Origin", value: process.env.WEBSITE_URL }, { key: "Access-Control-Allow-Methods", value: "GET",