diff --git a/.gitignore b/.gitignore index e21d193be..e4dff52d7 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,6 @@ scripts/openapi # helm dependencies charts requirements.lock + +# React dependencies +node_modules diff --git a/dashboard/public/index.html b/dashboard/public/index.html index cf9a1bcd6..91bad6514 100644 --- a/dashboard/public/index.html +++ b/dashboard/public/index.html @@ -25,7 +25,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> React App - + diff --git a/dashboard/src/App.tsx b/dashboard/src/App.tsx index 5f794627d..3fa58486f 100644 --- a/dashboard/src/App.tsx +++ b/dashboard/src/App.tsx @@ -5,8 +5,10 @@ import './App.css'; function App() { useEffect(() => { - console.log((window as unknown as any).env); - }) + const REACT_APP_API_URL = (window as unknown as any).env?.REACT_APP_API_URL; + + fetch(`${REACT_APP_API_URL}/users/foo/designs`); + }, []) return (