Skip to content

Commit 271f9d9

Browse files
committed
fix: remove hardcoded production string as fallback from no VITE_API_URL so to avoid developers making changes do production data by mistake
1 parent 4cccae0 commit 271f9d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import axios from 'axios';
33
console.log(import.meta.env.VITE_API_URL);
44

55
const api = axios.create({
6-
baseURL: import.meta.env.VITE_API_URL ?? 'https://api.sos-rs.com',
6+
baseURL: import.meta.env.VITE_API_URL ?? 'http://localhost:4000/',
77
});
88

99
export { api };

0 commit comments

Comments
 (0)