Orbis
Docker nuxt $fetch and useFetch
You should alsways take the "public" adress/host. In your case api.localhost.
the service name php will only work server-side. Services from a compose stack know each other by the service name, but if you send html and js to your browser and fetch there, your browser does not know php as adress, because it's on your machine and not inside the stack
11 replies
How to use svg
nuxt icon does supprt custom https://nuxt.com/modules/icon#custom-local-collections
22 replies
Possible to update API path in static build without rebuild.
Yes. You can online set env at build time with generate. There is no real workaround. You would have to request the "env" from any "api" at browser (like a request). Or intercept the html and write soweit payload to the window.
Any chance to not generate static files?
13 replies
Possible to update API path in static build without rebuild.
Not possible with generate/static build. This is not a nuxt limitation. All the hmtl an js is already build and the Browser cant read any env from the host Maschine. Without any request or backend/ssr not possible.
13 replies