From 50b3e421dfc6190cfecc2bbc3102ae8788f138b3 Mon Sep 17 00:00:00 2001 From: Aran Roig Date: Sat, 2 May 2026 17:12:32 +0200 Subject: [PATCH] Test2 --- frontend/.env.production | 2 +- frontend/app/plugins/i18n.ts | 2 -- frontend/app/services/BackendURL.js | 2 +- frontend/app/services/Server.js | 2 +- frontend/nuxt.config.ts | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/.env.production b/frontend/.env.production index f896313..4397e55 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -1 +1 @@ -API_BASE_URL=https://dragonroll.aranroig.com/api \ No newline at end of file +NUXT_PUBLIC_API_BASE_URL=https://dragonroll.aranroig.com/api \ No newline at end of file diff --git a/frontend/app/plugins/i18n.ts b/frontend/app/plugins/i18n.ts index b3f36aa..c25674c 100644 --- a/frontend/app/plugins/i18n.ts +++ b/frontend/app/plugins/i18n.ts @@ -5,7 +5,6 @@ function loadLocaleMessages() { const messages: Record = {} 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 } diff --git a/frontend/app/services/BackendURL.js b/frontend/app/services/BackendURL.js index df35e80..9e84111 100644 --- a/frontend/app/services/BackendURL.js +++ b/frontend/app/services/BackendURL.js @@ -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 diff --git a/frontend/app/services/Server.js b/frontend/app/services/Server.js index 61a3110..396b3c1 100644 --- a/frontend/app/services/Server.js +++ b/frontend/app/services/Server.js @@ -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": "*", } diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts index f0734ff..6bda96e 100644 --- a/frontend/nuxt.config.ts +++ b/frontend/nuxt.config.ts @@ -43,7 +43,7 @@ export default defineNuxtConfig({ runtimeConfig: { public: { - apiBaseUrl: process.env.API_BASE_URL || 'http://localhost:5000/api', + apiBaseUrl: process.env.NUXT_PUBLIC_API_BASE_URL || 'http://localhost:5000/api', gitCommit: git.commit, gitTag: git.tag, gitBranch: git.branch,