We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f472f4 commit 4d46126Copy full SHA for 4d46126
frontend/src/constants/constants.ts
@@ -11,7 +11,9 @@ export const initialItems = [
11
})),
12
];
13
14
-export const BACKEND_URL = import.meta.env.VITE_BACKEND_URL || 'http://localhost:5000';
+export const BACKEND_URL = import.meta.env.VITE_BACKEND_URL || (
15
+ import.meta.env.MODE === 'production' ? '' : 'http://localhost:5000'
16
+);
17
18
export const FIFTEEN_MIN_IN_MS = 900000;
19
export const TWO_MIN_IN_MS = 120000;
0 commit comments