In my Next.js application, I am looking to generate a unique CSP (Content Security Policy) nonce for inline scripts on a per-request basis.
To implement this, I plan to create a nonce within my `middleware.ts` file and include it in the request headers. This nonce can then be accessed by my custom `Document` component's `getInitialProps` method, which receives a context object containing properties like `req` (the incoming request).
However, I have noticed that some pages do not have a request available in the `ctx` argument passed to the `Document.getInitialProps` method. According to the [Next.js documentation](https://nextjs.org/docs/pages/building-your-application/rendering/automatic-static-optimization):
"ctx.req will be undefined for pages that are prerendered"
Is there a way to completely disable prerendering in Next.js so that all pages are consistently server-side rendered, ensuring reliable access to the request in a custom `Document` component?