From 6862ba54013b76dc0707f91480ea82042cef9741 Mon Sep 17 00:00:00 2001 From: Rui Lopes Date: Tue, 30 Jan 2024 09:47:01 +0000 Subject: [PATCH] fix: env variables being on netlify config file instead of dashboard --- .env.local.sample | 4 ++-- netlify.toml | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.env.local.sample b/.env.local.sample index 4a418da7..0ab361a0 100644 --- a/.env.local.sample +++ b/.env.local.sample @@ -1,2 +1,2 @@ -NEXT_PUBLIC_API_URL=https://sei23-staging.herokuapp.com -NEXT_PUBLIC_QRCODE_HOST=seium.org +NEXT_PUBLIC_API_URL=http://localhost:4000 +NEXT_PUBLIC_QRCODE_HOST=seium.org \ No newline at end of file diff --git a/netlify.toml b/netlify.toml index 905e8a0e..972c4c25 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,15 +5,8 @@ [build.environment] NODE_VERSION = "18.12.0" -[context.production.environment] - NEXT_PUBLIC_API_URL = "https://sei23-production.herokuapp.com" - -[context.deploy-preview.environment] - NEXT_PUBLIC_API_URL = "https://sei23-production.herokuapp.com" - [[headers]] for = "/*" [headers.values] X-Frame-Options = "DENY" X-XSS-Protection = "1; mode=block" -