This commit is contained in:
2023-09-16 20:23:41 +02:00
parent bc5384e747
commit c5b639b068
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
VITE_API_URL="https://stacjownik.spythere.pl"
VITE_API_URL_DEV="http://localhost:3001"
VITE_API_DEV=0
VITE_API_DEV="0"
+1 -1
View File
@@ -2,7 +2,7 @@ import { defineStore } from 'pinia';
import { AuthState, ILoginResponse, IStore, IUser, SceneryRowItem } from './types/types';
import axios from 'axios';
export const baseURL = import.meta.env[`VITE_API_URL${import.meta.env.DEV === '1' ? '_DEV' : ''}`];
export const baseURL = import.meta.env['VITE_API_URL'];
export const useStore = defineStore('store', {
state: () =>