From c5b639b0684738f1283caf05599bc0d561517779 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 16 Sep 2023 20:23:41 +0200 Subject: [PATCH] hotfix --- .env | 2 +- src/store.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 7a60ec8..8e63cd4 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ VITE_API_URL="https://stacjownik.spythere.pl" VITE_API_URL_DEV="http://localhost:3001" -VITE_API_DEV=0 \ No newline at end of file +VITE_API_DEV="0" \ No newline at end of file diff --git a/src/store.ts b/src/store.ts index 9edc281..7ed0101 100644 --- a/src/store.ts +++ b/src/store.ts @@ -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: () =>