Daniel Roe

Results 2592 comments of Daniel Roe

If `crawlLinks` is false, you do need to provide at least one path to prerender - you can set it in `nitro.prerender.routes`, and it should then ensure everything else is...

It is intentional. Users may modify these routes at runtime in router.options, in which case prerendering them would cause an error. But if at least one is prerendered, we can...

@luke-wyeth As long as one page is prerendered - and we add `/` by default - and `crawlLinks` is enabled (which it is by default when prerendering), the rest will...

I think you should run `nuxi build` and/or use the `cloudflare-pages-static` preset.

Would you see if you can reproduce this in pure Nitro ([reproduction sandbox](https://stackblitz.com/github/unjs/nitro/tree/main/examples/hello-world)), and if so, raise [there](https://github.com/unjs/nitro/issues/new/choose)? 🙏 This is very unlikely to be a Nuxt-specific issue.

@fanckush the ssg functionality is part of nitro

The preset in Nitro is `cloudflare-pages-static`: https://github.com/unjs/nitro/blob/9b02f572d11c4af5a14e24801ccbe57334eaf6ab/src/presets/cloudflare/preset.ts#L52.

if you want a server too, with any preset, then you should not run nuxi generate. instead, configure `nitro.prerender.routes` in your nuxt config this is called hybrid rendering in the...

Would you see if you can reproduce this in pure Nitro ([reproduction sandbox](https://stackblitz.com/github/unjs/nitro/tree/main/examples/hello-world)), and if so, raise [there](https://github.com/unjs/nitro/issues/new/choose)? 🙏

We think it would be a good idea to allow passing an option to `addRouteMiddleware` (as [with `addPlugin`](https://github.com/nuxt/nuxt/blob/83f8617e3f506125c2a9882afef4074ee0f1ded9/packages/kit/src/pages.ts#L40-L59)) to allow adding middleware to the beginning of the middleware array rather...