Custom fetch in preset #4319
ThibaultVlacich
started this conversation in
Help Wanted
Replies: 1 comment
|
Oh, it looks like it's a Nitro v3 only feature, to be able to provide a fetch in the preset? I'm still using v2 for now (Nuxt 4). If you know of a way to do it :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
Fetch has some issues on Azure Static Web Apps using Node 22, and I need to disable IPv6
I tried to implement it globally adding this in my custom preset:
But at build time I get an error:
[error] $fetch is not defined.I can't really find any documentation on how to do this correctly, any idea what would be the correct way to do it? I also tried doing what's done in the pre-made presets, meaning using
useNitroApp().fetch, butuseNitroAppdoesn't seem to be available, and not sure from where to import it.All reactions