mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 05:18:10 +00:00
eslint & prettier update; api fetching from static server
This commit is contained in:
+4
-4
@@ -1,10 +1,10 @@
|
||||
import axios from "axios";
|
||||
import axios from 'axios';
|
||||
|
||||
const http = axios.create({
|
||||
baseURL:
|
||||
import.meta.env.VITE_API_DEV === "1" && import.meta.env.DEV
|
||||
? "http://localhost:5500"
|
||||
: "https://spythere.github.io/api",
|
||||
import.meta.env.VITE_API_DEV === '1' && import.meta.env.DEV
|
||||
? 'http://localhost:5500'
|
||||
: 'https://static.spythere.eu',
|
||||
});
|
||||
|
||||
export default http;
|
||||
|
||||
Reference in New Issue
Block a user