Category: Docker
-
Deployment environment variables Nuxt3 with bitbucket & docker
Had quite a few issues setting this up with our Bitbucket deployments. Most overlooked fact was needing to prefix variables remotely with NUXT_ for private variables. And NUXT_PUBLIC_ for public variables. For example an ENV variable needs — NUXT_PUBLIC_FLAG_BASE_URL & accessed via process.env.FLAG_BASE_URL or process.env.flagBaseUrl This also applies to Netlify, Vercel etc. Environment config (Bitbucket…