dystcz / nuxt-sanctum-auth

Nuxt 3 + laravel sanctum authentication
134 stars 25 forks source link

Hot to use .env file to setup baseurl #40

Closed cvalues closed 1 year ago

cvalues commented 1 year ago

Hi,

i want to use different .env files but setting up the baseurl seems not to work:

   runtimeConfig: {
      public: {
        API_BASE_URL: process.env.API_BASE_URL //works in components with config.public.API_BASE_URL
      }
   },

baseUrl: process.env.API_BASE_URL //does not work

thank you

cvalues commented 1 year ago

works!