This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const backendUrl = import.meta.env.API_BASE_URL || 'http://localhost:5000/api'
|
||||
const backendUrl = import.meta.env.NUXT_PUBLIC_API_BASE_URL || 'http://localhost:5000/api'
|
||||
|
||||
export {
|
||||
backendUrl
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
|
||||
const server = axios.create({
|
||||
baseURL: import.meta.env.API_BASE_URL || 'http://localhost:5000/api',
|
||||
baseURL: import.meta.env.NUXT_PUBLIC_API_BASE_URL || 'http://localhost:5000/api',
|
||||
headers: {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user