How to debug generate process when showing error 404 #2233
Replies: 2 comments 2 replies
-
Yeah, never mind the original question on how to debug command, I found that this can be done quite easily with VS Code debug session. Now the problem is the the error is generated from await nitro.hooks.callHook("prerender:routes", routes); And I need to look for where the hook is registered and what it does.... |
Beta Was this translation helpful? Give feedback.
-
I found that the problem lies in the header URLs under the name EDIT: BTW, this is generated at the line 98-103 in the subfunction |
Beta Was this translation helpful? Give feedback.
-
nuxt generate
withssr: false
works just fine, but when I setssr: true
and the prerender step will complain that some payload (I guess?) json files are missing. And since their names are sort of hash-ed (e.g./api/_content/query/wxmlyJ2dlX.1692374233767.json
), how can I debug the generate process to see who and where is making such queries so that I can fix things up?It is not a huge problem as I've got
ssr: false
as a workaround, but giving up SSR seems to be a huge loss for a document driven site.Beta Was this translation helpful? Give feedback.
All reactions