Skip to content

Commit 3b827eb

Browse files
Merge pull request #92 from festim-dev/hotfix-localhost
use getApiEndpoint instead of localhost
2 parents 26a0f09 + 4a36141 commit 3b827eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function App() {
9898
// Function to fetch default values for a node type
9999
const fetchDefaultValues = async (nodeType) => {
100100
try {
101-
const response = await fetch(`http://localhost:8000/default-values/${nodeType}`);
101+
const response = await fetch(getApiEndpoint(`/default-values/${nodeType}`));
102102
if (response.ok) {
103103
const defaults = await response.json();
104104
return defaults;

0 commit comments

Comments
 (0)