Compare commits

...

2 Commits

Author SHA1 Message Date
963295e76b sisi
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 41s
2026-05-02 17:05:20 +02:00
e12b48b3e1 si 2026-05-02 17:04:37 +02:00
2 changed files with 2 additions and 4 deletions

View File

@@ -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 {
backendUrl

View File

@@ -1,9 +1,7 @@
import axios from 'axios';
import { backendUrl } from './BackendURL';
const server = axios.create({
baseURL: backendUrl,
baseURL: import.meta.env.API_BASE_URL || 'http://localhost:5000/api',
headers: {
"Access-Control-Allow-Origin": "*",
}