'Next.js staticPageGenerationTimeout not working
I have put this in my next.config.js file (Next.js 11.1.3):
const path = require("path");
module.exports = {
sassOptions: {
includePaths: [path.join(__dirname, "styles")],
},
trailingSlash: true,
staticPageGenerationTimeout: 1000,
};
However, the error I get is this:
warn - Restarted collecting page data for /blog/[slug] because it took more than 60 seconds
warn - See more info here https://nextjs.org/docs/messages/static-page-generation-timeout
It's mentioning 60 seconds which is the default value and seems like the custom value I've provided isn't working. What's wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
