From cd3402f0d7008cd5436e668edbbef7c005713366 Mon Sep 17 00:00:00 2001 From: gary-van-woerkens Date: Mon, 20 Sep 2021 10:47:15 +0200 Subject: [PATCH] fix: Clean code --- .../environments/dev/nos1000jours-web-pro.configmap.yaml | 1 - .../environments/preprod/nos1000jours-web-pro.configmap.yaml | 1 - .../environments/prod/nos1000jours-web-pro.configmap.yaml | 1 - next.config.js | 3 --- pages/questionnaire-epds.js | 4 +--- 5 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.socialgouv/environments/dev/nos1000jours-web-pro.configmap.yaml b/.socialgouv/environments/dev/nos1000jours-web-pro.configmap.yaml index b233323..e0ed28a 100644 --- a/.socialgouv/environments/dev/nos1000jours-web-pro.configmap.yaml +++ b/.socialgouv/environments/dev/nos1000jours-web-pro.configmap.yaml @@ -6,4 +6,3 @@ data: NODE_ENV: "production" MATOMO_SITE_ID: "47" MATOMO_URL: "https://matomo.fabrique.social.gouv.fr/" - NEXT_PUBLIC_API_URL: "backoffice-develop-dev-les1000jours.dev.fabrique.social.gouv.fr" diff --git a/.socialgouv/environments/preprod/nos1000jours-web-pro.configmap.yaml b/.socialgouv/environments/preprod/nos1000jours-web-pro.configmap.yaml index 1be32c1..e0ed28a 100644 --- a/.socialgouv/environments/preprod/nos1000jours-web-pro.configmap.yaml +++ b/.socialgouv/environments/preprod/nos1000jours-web-pro.configmap.yaml @@ -6,4 +6,3 @@ data: NODE_ENV: "production" MATOMO_SITE_ID: "47" MATOMO_URL: "https://matomo.fabrique.social.gouv.fr/" - NEXT_PUBLIC_API_URL: "backoffice-preprod-les1000jours.dev.fabrique.social.gouv.fr" diff --git a/.socialgouv/environments/prod/nos1000jours-web-pro.configmap.yaml b/.socialgouv/environments/prod/nos1000jours-web-pro.configmap.yaml index dd76f6b..e0ed28a 100644 --- a/.socialgouv/environments/prod/nos1000jours-web-pro.configmap.yaml +++ b/.socialgouv/environments/prod/nos1000jours-web-pro.configmap.yaml @@ -6,4 +6,3 @@ data: NODE_ENV: "production" MATOMO_SITE_ID: "47" MATOMO_URL: "https://matomo.fabrique.social.gouv.fr/" - NEXT_PUBLIC_API_URL: "backoffice-les1000jours.fabrique.social.gouv.fr" diff --git a/next.config.js b/next.config.js index b73a84c..1f9ef0e 100644 --- a/next.config.js +++ b/next.config.js @@ -11,7 +11,4 @@ module.exports = { }, ] }, - // env: { - // API_URL: process.env.API_URL - // } } diff --git a/pages/questionnaire-epds.js b/pages/questionnaire-epds.js index ff57455..6993276 100644 --- a/pages/questionnaire-epds.js +++ b/pages/questionnaire-epds.js @@ -11,15 +11,13 @@ import { ContentLayout } from "../src/components/Layout"; import { HeaderImage } from "../src/components/HeaderImage"; import { EpdsQuestion } from "../src/components/EpdsQuestion"; import { - API_URL, STORAGE_TOTAL_SCORE, EPDS_SOURCE, EpdsGender, STORAGE_RESULTS_BOARD, STORAGE_GENRE_PATIENT } from "../src/constants/constants"; -console.log("API_URL:", API_URL); -console.log("process.env.NEXT_PUBLIC_API_URL:", process.env.NEXT_PUBLIC_API_URL); + export default function QuestionnaireEPDS({ questionsEpds, resultsBoard }) { const { t } = useTranslation('questionnaire-epds'); const router = useRouter();