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);