We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df405ac commit 6eabf4dCopy full SHA for 6eabf4d
1 file changed
frontend/src/services/api.ts
@@ -3,7 +3,8 @@ import axios from 'axios'
3
const getApiBaseURL = () => {
4
if (typeof window !== 'undefined') {
5
const env = (import.meta as any).env
6
- if (env?.PROD && env?.VITE_API_URL) {
+ // Always check VITE_API_URL first, regardless of environment
7
+ if (env?.VITE_API_URL) {
8
return `${env.VITE_API_URL}/api`
9
}
10
0 commit comments