Custom, external, $fetch fetches the external API instead of the nuxt server, BUT only in production
I'm using the same setup locally and in production:
Here's some of the setup:
Caddyfile
docker-compose.yaml
nuxt/Dockerfile.prod
api.Dockerfile
nuxt/.env
api/.env
- caddy, running on the host, not in a docker container
- docker container for nuxt
- docker container for the api (FastAPI)
Here's some of the setup:
Caddyfile
docker-compose.yaml
nuxt/Dockerfile.prod
api.Dockerfile
nuxt/.env
api/.env