Noticed that Next.js dev server is really slow, annoying that it can't precompile pages in the background.
There is a that will do most of the things for you in a few seconds.
Still, requires some effort.
Config tweaks
There is onDemandEntries option for next.config.js, can use it to force dev server to store more compiled pages in memory, so you will see fewer compiling /page ... lines.
For example:
const nextConfig = {
onDemandEntries: {
// period (in ms) where the server will keep pages in the buffer
maxInactiveAge: 15 * 60 * 1000, // 15 minutes
// number of pages that should be kept simultaneously without being disposed
pagesBufferLength: 4,
},
Tnx for reading.
SOCIAL SHARE CARD GENERATOR