Jan Hug

Results 90 comments of Jan Hug

So this seems to be due to the new "app" folder structure. I wonder how Nuxt 4 works with the previous "app/router.options.ts" file? But it seems that there is still...

I think I've already found a way to fix it. Looking at the upgrade guide, with Nuxt 4 the correct place to put the file would be in `./server/graphqlMiddleware.serverOptions.ts`, because...

Started working on adding Nuxt 4 compatibility. The bug mentioned in this issue has been resolved: I'm now generating two separate templates (.mjs and .d.ts) instead of a single template...

I've tested it in several of my own projects (without `compatibilityVersion: 4`) to make sure it doesn't break existing setups. The module's playground uses `compatibilityVersion: 4` where it also works...

I think this might be the same issue that I also have in #3582. What might work is to add the path to `externals.traceInclude`: ```typescript export default defineNitroConfig({ srcDir: "server",...

One thing that comes to mind: Could it be somehow related to the key of the cache item? Since you mention that purging everything works. Maybe also check using the...

Like others I was also looking for a solution for component caching with Vue 3 server-renderer. I maintain [nuxt-multi-cache](https://github.com/dulnan/nuxt-multi-cache) that among other things offers a seamless integration for component caching...

The module is specifically only made for SSR caching. Especially the unstorage dependency would have to be included in the client bundle for a seamless experience, which would not be...

Yeah I know exactly what you mean! Just using useAsyncData out of the box will only return a cached value on hydration. You'd have to define your own `getCachedData` method...

You can pass a `getCachedData` method to the `useAsyncData` options: https://nuxt.com/docs/api/composables/use-async-data#params By default, the `getCachedData` method is this: `key => nuxt.isHydrating ? nuxt.payload.data[key] : nuxt.static.data[key]`. This will only load the...