mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 05:28:13 +00:00
wykluczenie .env; poprawka http
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
VITE_API_URL="https://stacjownik.spythere.eu"
|
|
||||||
VITE_API_URL_DEV="http://localhost:3001"
|
|
||||||
VITE_API_MODE="DEV"
|
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
const baseURL = import.meta.env['VITE_API_MODE'] == 'DEV' ? import.meta.env['VITE_API_URL_DEV'] : import.meta.env['VITE_API_URL'];
|
const baseURL = import.meta.env['VITE_API_MODE'] == 'DEV' ? 'http://localhost:3001' : 'https://stacjownik.spythere.eu';
|
||||||
|
|
||||||
const client = axios.create({
|
const client = axios.create({
|
||||||
baseURL: baseURL,
|
baseURL: baseURL,
|
||||||
|
|||||||
Reference in New Issue
Block a user