Compare commits
2 Commits
b0509818b2
...
963295e76b
| Author | SHA1 | Date | |
|---|---|---|---|
| 963295e76b | |||
| e12b48b3e1 |
@@ -1,4 +1,4 @@
|
|||||||
const backendUrl = process.env.API_BASE_URL || 'http://localhost:5000/api'
|
const backendUrl = import.meta.env.API_BASE_URL || 'http://localhost:5000/api'
|
||||||
|
|
||||||
export {
|
export {
|
||||||
backendUrl
|
backendUrl
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
import { backendUrl } from './BackendURL';
|
|
||||||
|
|
||||||
const server = axios.create({
|
const server = axios.create({
|
||||||
baseURL: backendUrl,
|
baseURL: import.meta.env.API_BASE_URL || 'http://localhost:5000/api',
|
||||||
headers: {
|
headers: {
|
||||||
"Access-Control-Allow-Origin": "*",
|
"Access-Control-Allow-Origin": "*",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user