Pre-Render not pre rendering
Hi π
I stumpled across a weird problem. My pre-rendered Routes are not working anymore. Havent found anything in the release notes - but the following code worked in previous versions / other projects.
I am pre-rendering 2 routes on build, but the .html file generated are kind of empty:
I am using the 'nitro:config' hook to dynamically add routes to pre-render, which seems to work.
Any ideas why the routes are not pre-renderd? When running on DEV the routes work in SSR.
1 Reply
Doesn't the hook need to be a function? I am using it like this: