kleinpetr
kleinpetr
Explore posts from servers
NNuxt
Created by kleinpetr on 12/7/2024 in #❓・help
Loading Indicator when ssr:false
the spaLoadingTemplate works well
5 replies
NNuxt
Created by kleinpetr on 8/6/2024 in #❓・help
Change nitro preset for tests
No description
2 replies
NNuxt
Created by Zerro on 3/14/2024 in #❓・help
How to create custom $fetch for server side only
my current workaround is to use server util for example export const $customFetch = () => $fetch.create().. and the usage looks like this const data = $customFetch()('/path')
3 replies
NNuxt
Created by Zerro on 3/14/2024 in #❓・help
How to create custom $fetch for server side only
I have the same question, becuase Nitro plugins work in a different way. I've been trying to create a util which would export $customFetch using $fetch.create() but it says the $fetch is undefined. So is there any recommended way how to register a custom fetch within the Nitro context? Thanks
3 replies