Skip to content

Commit

Permalink
debug ui deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mgierada committed Jun 13, 2024
1 parent c673526 commit 156b065
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion ui/next.config.mjs
Original file line number Diff line number Diff line change
@@ -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,
},
};
Expand Down
6 changes: 2 additions & 4 deletions ui/src/components/CounterDisplay/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 156b065

Please sign in to comment.