We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f12f17 + ef8b94e commit 5323462Copy full SHA for 5323462
ui/src/services/api/client.js
@@ -1,6 +1,7 @@
1
import axios from 'axios'
2
3
-const base = import.meta.env.VITE_API_ENDPOINT || 'http://localhost:8000'
+const defaultBase = import.meta.env.MODE === 'development' ? 'http://localhost:8000' : "/"
4
+const base = import.meta.env.VITE_API_ENDPOINT || defaultBase
5
6
export const client = axios.create({
7
baseURL: base,
0 commit comments