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:
* caddy, running on the host, not in a docker container
* docker container for nuxt
* docker container for the api (FastAPI)
It works locally, but doesn't work on the VPS.
Here's some of the setup:
Caddyfile
docker-compose.yaml
nuxt/Dockerfile.prod
api.Dockerfile
nuxt/.env
api/.env
0 Replies