From 7dc256eaedf7a3f954f9b5dbe919f01d0a6fa273 Mon Sep 17 00:00:00 2001 From: Diego Calvo Date: Tue, 2 Sep 2025 09:45:51 +0200 Subject: [PATCH] change .env BASE_URL to NUXT_PUBLIC_BASE_URL --- example.env | 2 +- nuxt.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example.env b/example.env index 3941d42..0373df6 100644 --- a/example.env +++ b/example.env @@ -1,6 +1,6 @@ API = 'http://0.0.0.0:8000/' API_V1 = '/api/v1/' -BASE_URL= $API$API_V1 +NUXT_PUBLIC_BASE_URL= $API$API_V1 GOOGLE_CLIENT_ID='1076928279923-s6hdbpcpbeaeqnact5t5kmktrkaipndq.apps.googleusercontent.com' FACEBOOK_ID='751687992155393' diff --git a/nuxt.config.ts b/nuxt.config.ts index 3a2d425..260c45b 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -69,7 +69,7 @@ export default defineNuxtConfig({ }, runtimeConfig: { - baseURL: process.env.BASE_URL, + baseURL: process.env.NUXT_PUBLIC_BASE_URL, public: { baseURL: process.env.NUXT_PUBLIC_BASE_URL, googleAnalyticsId: process.env.NUXT_PUBLIC_GOOGLE_ANALYTICS_ID,