eslint & prettier update; api fetching from static server

This commit is contained in:
2024-03-27 16:10:53 +01:00
parent f9276f6c71
commit 337425d21c
37 changed files with 636 additions and 565 deletions
+4 -4
View File
@@ -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;