getServerProps
with child_process
Next It turns out, that you can't use Node.js native modules in getServerProps
.
Repro
yarn
yarn dev
# open http://localhost:3001/ - have a look in the terminal
Reproduction of `getServerProps` with native Node.js modules
JavaScript
getServerProps
with child_process
It turns out, that you can't use Node.js native modules in getServerProps
.
yarn
yarn dev
# open http://localhost:3001/ - have a look in the terminal