Spaces:
Runtime error
Runtime error
Usman Bari commited on
Commit ·
0c6bee4
1
Parent(s): 37a6ee1
Update API URL for Netlify deployment
Browse files- frontend/src/api.js +1 -1
frontend/src/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
const BASE_URL = "http://localhost:8000";
|
| 2 |
|
| 3 |
/**
|
| 4 |
* Helper to process fetch responses, parsing JSON and raising errors with detailed messages if available.
|
|
|
|
| 1 |
+
const BASE_URL = import.meta.env.VITE_API_URL || "http://localhost:8000";
|
| 2 |
|
| 3 |
/**
|
| 4 |
* Helper to process fetch responses, parsing JSON and raising errors with detailed messages if available.
|