Client/server URL for directus

Hello all, having mad fun while discovering Directus. Pairing it with Nuxt, trying to do so with nuxt/directus module but I'm missing a really important step which is server/client data fetching within docker dev image.
Following the docs i added a directusUrl value in config and I'm using useAsyncData to fetch. (had cors issues I managed to fix)

My problem is simple : I can only make fetch work eitehr server (using directus docker image path like directus:PORT) or client side (using localhost:PORT.

From the docs we only have one value for directusUrl, how to toggle between server/client url or so ?

Thanks!
Was this page helpful?