Skip to content

Commit 73ce490

Browse files
committed
Configure Vite environment variables for local and live environments
1 parent 7095403 commit 73ce490

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

frontend/.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/.env. production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_BACKEND_URL=https://breeze.nixx.dev

frontend/.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_BACKEND_URL=http://localhost:8000

frontend/src/lib/axios.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import axios, { AxiosInstance } from "axios";
1+
import axios, { AxiosInstance } from 'axios';
22

33
const instance: AxiosInstance = axios.create({
4-
baseURL: import.meta.env.VITE_BACKEND_URL_LOCAL as string,
5-
withCredentials: true
4+
baseURL: import.meta.env.VITE_BACKEND_URL as string,
5+
withCredentials: true,
66
});
77

88
export default instance;

0 commit comments

Comments
 (0)