From 9ec5dc3a61e2989bc2d054113de08967e0ffab91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Isaksen?= Date: Sat, 26 Mar 2022 09:28:38 +0100 Subject: [PATCH] chore: deployment 3 --- .env.development | 1 + .env.production | 1 + pages/climate/index.tsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .env.development create mode 100644 .env.production diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..a37fabf --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +NEXT_PUBLIC_READING_BASE_URI=https://www.oyvindis.com \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..5a10171 --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +NEXT_PUBLIC_READING_BASE_URI=http://kotlin-service:8080 \ No newline at end of file diff --git a/pages/climate/index.tsx b/pages/climate/index.tsx index 53f2a6d..79fea4c 100644 --- a/pages/climate/index.tsx +++ b/pages/climate/index.tsx @@ -22,7 +22,7 @@ const Climate: NextPage = () => { {READING_BASE_URI}
- {readings.length > 0 && readings.map(({id, temperatureReading, humidityReading}) => ( + {readings?.length > 0 && readings.map(({id, temperatureReading, humidityReading}) => (
{id} - { temperatureReading} - {humidityReading}