You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrating a Nuxt 2 project w/ ssr: false. Uses axios to communicate directly with an API hosted on a subdomain to the nuxt app. Set up nuxt bridge, with nitro:
I believe this isn't a bug, just a lack of clear documentation on the subject. As I'm not using a nitro function in netlify, just deploying it as a service worker, it's unclear how requests to external resources like an API now work. What I'm seeing is every request goes through the service worker, and returns the base index.html of the app. What I expect is the request to go to whatever endpoint is being requested, although I'm not seeing how to achieve this in the docs anywhere.
I think it's a fairly common setup with nuxt 2 to build an SPA with axios in this way, so my request is to provide some documentation on how to migrate to or workaround whatever is happening with nitro's service worker, as I'm finding the mental model for this confusing compared to what I got used to.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
Migrating a Nuxt 2 project w/
ssr: false
. Uses axios to communicate directly with an API hosted on a subdomain to the nuxt app. Set up nuxt bridge, with nitro:Deploying with netlify.
Describe the bug
I believe this isn't a bug, just a lack of clear documentation on the subject. As I'm not using a nitro function in netlify, just deploying it as a service worker, it's unclear how requests to external resources like an API now work. What I'm seeing is every request goes through the service worker, and returns the base index.html of the app. What I expect is the request to go to whatever endpoint is being requested, although I'm not seeing how to achieve this in the docs anywhere.
I think it's a fairly common setup with nuxt 2 to build an SPA with axios in this way, so my request is to provide some documentation on how to migrate to or workaround whatever is happening with nitro's service worker, as I'm finding the mental model for this confusing compared to what I got used to.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: