alex pixel
alex pixel
NNuxt
Created by alex pixel on 11/4/2024 in #❓・help
How to skip the build proccess in nuxi generate, if a build already exists?
In nuxt2 you could skip the build with "--no-build" parameter if a build already exists. The build process takes quite some time. When I just want to generate/prerender some new additional routes (without app changes), it would be great if you could skip the build process for generate in nuxt3. Does anybody has a solution for this?
5 replies
NNuxt
Created by alex pixel on 10/8/2024 in #❓・help
nuxi generate, nested useAsyncData, not working
I have set experimental: { asyncContext: true } in nuxt.config.ts (nuxt3 project). I use multiple useAsyncData in the component tree. It works with SSR, but when I try to do a nuxi generate it fails with 500 Errors (strangely only, after the first page). I logged it and it seams that the second useAsyncData isn't executed at all in SSG. Also tried a callWithNuxt but that didn't work either. Is it known that asyncContext: true doesn't work with SSG? Is this expected behaviour? Any workarounds/tips for this kind of problem?
3 replies
NNuxt
Created by alex pixel on 2/16/2023 in #❓・help
useHead with scripts, how set html attribute to ="true"
I have problem with the useHead composable. I need to add a script tag in vue3 which has a html attribute set to 'true', this should render as ="true" but renders as ="". I can see that this is done intentionally https://github.com/unjs/unhead/blob/main/packages/unhead/src/utils/normalise.ts function normaliseProps line 57. This behaviour changed from nuxt 3 rc11 to rc12 in a useHead refactor. Before that it worked as expected. Bug? Any solution hot to get raw html in the head? App.html doesn't work anymore in nuxt3.
5 replies