Fix env
This commit is contained in:
parent
b53804a706
commit
72ad91ff00
|
@ -1 +0,0 @@
|
|||
BASE_URL=http://localhost:8000/api/
|
1
web/.env.development
Normal file
1
web/.env.development
Normal file
|
@ -0,0 +1 @@
|
|||
VITE_BASE_URL=http://localhost:8000/api/
|
|
@ -1 +0,0 @@
|
|||
BASE_URL=https://printers.pp.ifms.edu.br/api/
|
1
web/.env.production
Normal file
1
web/.env.production
Normal file
|
@ -0,0 +1 @@
|
|||
VITE_BASE_URL=https://printers.pp.ifms.edu.br/api/
|
|
@ -1,4 +1,4 @@
|
|||
const BASE_URL = process.env.BASE_URL || 'http://localhost:8000/api/'
|
||||
const BASE_URL = import.meta.env.VITE_BASE_URL || 'http://localhost:8000/api/'
|
||||
|
||||
export async function api<T>(endpoint: string, options: any): Promise<T> {
|
||||
const token = localStorage.getItem('token')
|
||||
|
|
Loading…
Reference in New Issue
Block a user