You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In short, I am using a node library at local as my backend CMS. Unlike requesting a remote GraphQL endpoint or querying a database (which is damn slow), it is FAAAAASSSSST enough that I need just one instance. With the Next.js multi-thread feature when prerendering the static page, starting multiple instances of the library actually makes the build slower.
This discussion was converted from issue #33015 on January 05, 2022 11:56.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Describe the feature you'd like to request
RT.
Context: #32981
In short, I am using a node library at local as my backend CMS. Unlike requesting a remote GraphQL endpoint or querying a database (which is damn slow), it is FAAAAASSSSST enough that I need just one instance. With the Next.js multi-thread feature when prerendering the static page, starting multiple instances of the library actually makes the build slower.
Related context
next.js/packages/next/build/index.ts
Lines 780 to 791 in cfa8ab9
Describe the solution you'd like
Allow
getStaticProps
andgetStaticPaths
to have a shared context where I can put the local node library CMS in.Describe alternatives you've considered
An option to disable the multi-thread feature completely.
Beta Was this translation helpful? Give feedback.
All reactions