From 156b06569fa3ad267f82787f19e11aa1759dd165 Mon Sep 17 00:00:00 2001 From: Maciej Gierada Date: Thu, 13 Jun 2024 20:23:29 +0200 Subject: [PATCH] debug ui deployment --- ui/next.config.mjs | 1 - ui/src/components/CounterDisplay/index.js | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ui/next.config.mjs b/ui/next.config.mjs index c8bc068..8db58da 100644 --- a/ui/next.config.mjs +++ b/ui/next.config.mjs @@ -1,7 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { env: { - ROOT_API_URL: process.env.ROOT_API_URL, NEXT_PUBLIC_ROOT_API_URL: process.env.NEXT_PUBLIC_ROOT_API_URL, }, }; diff --git a/ui/src/components/CounterDisplay/index.js b/ui/src/components/CounterDisplay/index.js index 19c32d2..518ca59 100644 --- a/ui/src/components/CounterDisplay/index.js +++ b/ui/src/components/CounterDisplay/index.js @@ -2,10 +2,8 @@ import axios from "axios"; const fetchCurrentValue = async () => { try { - const rootUrl = process.env.ROOT_API_URL; - const publicRootUrl = process.env.NEXT_PUBLIC_ROOT_API_URL; - console.log("publicRootUrl:", publicRootUrl); - // const rootUrl = process.env.NEXT_PUBLIC_ROOT_API_URL; + const rootUrl = process.env.NEXT_PUBLIC_ROOT_API_URL; + console.log("rootUrl:", rootUrl); const endpoint = `${rootUrl}/counter`; console.log("Endpoint:", endpoint);