Home

Issue: 2851

docker-compose environment vars

[issue link]

I can’t pass variables through nuxt environment variables using docker-compose env variables

i’m trying to pass my API_HOST like this in docker

env:
  API_HOST: localhost:8081

then in nuxt.config.js i’ve done this

env: {
   API_HOST: process.env.API_HOST || "localhost"
}
This question is available on Nuxt.js community (#c2477)