From 93c9f2f0c01d5f21c2b37d293d98410afcb61ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Viga=C5=A1?= Date: Sat, 16 Nov 2024 17:35:38 +0100 Subject: [PATCH] add redirect url as ENV (#933) --- .env.example | 1 + next.config.js | 1 + src/pages/index.tsx | 7 ++++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index c182e9c8..434be6c5 100644 --- a/.env.example +++ b/.env.example @@ -3,4 +3,5 @@ NEXT_PUBLIC_isPostponeLive=true NEXT_PUBLIC_navodyBaseUrl=https://staging.navody.digital NEXT_PUBLIC_priznanieStepUrl=/zivotne-situacie/elektronicke-podanie-danoveho-priznania-2022/krok/prihlasit-sa-na-financnu-spravu NEXT_PUBLIC_odkladStepUrl=/zivotne-situacie/odklad-danoveho-priznania-2023/krok/podat-odklad +NEXT_PUBLIC_informujteMaKedBudeLive=/zivotne-situacie/elektronicke-podanie-danoveho-priznania-2024 RANDOM_TEST_LENGTH=20 \ No newline at end of file diff --git a/next.config.js b/next.config.js index f7dab09b..5055d39e 100644 --- a/next.config.js +++ b/next.config.js @@ -7,6 +7,7 @@ module.exports = { navodyBaseUrl: process.env.NEXT_PUBLIC_navodyBaseUrl, priznanieStepUrl: process.env.NEXT_PUBLIC_priznanieStepUrl, odkladStepUrl: process.env.NEXT_PUBLIC_odkladStepUrl, + informujteMaKedBudeLive: process.env.NEXT_PUBLIC_informujteMaKedBudeLive, plausibleDomain: process.env.NEXT_PUBLIC_plausibleDomain, odkladEmailTemplateId: process.env.NEXT_PUBLIC_odkladEmailTemplateId, priznanieEmailTemplateId: process.env.NEXT_PUBLIC_priznanieEmailTemplateId, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 8f4c8975..c7877215 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -4,6 +4,7 @@ import styles from './index.module.css' import { Warning } from '../components/Warning' import { TAX_YEAR } from '../lib/calculation' import { ExternalLink } from '../components/ExternalLink' +import getConfig from 'next/config' const IconCheck = () => ( { return ( <> @@ -169,7 +174,7 @@ const TaxFormSection = ({ nextRoute, isDebug, isLive }) => { {!isLive && (