Test2
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 41s

This commit is contained in:
2026-05-02 17:12:32 +02:00
parent 963295e76b
commit 50b3e421df
5 changed files with 4 additions and 6 deletions

View File

@@ -5,7 +5,6 @@ function loadLocaleMessages() {
const messages: Record<string, any> = {}
for (const path in locales) {
console.log(path);
const matched = path.match(/i18n\/locales\/(\w+)\/(.*)\.json$/)
if (!matched) continue
@@ -18,7 +17,6 @@ function loadLocaleMessages() {
messages[locale][file] = (locales[path] as any).default
}
console.log(messages);
return messages
}

View File

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

View File

@@ -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": "*",
}