Next.js Discord

Discord Forum

Can I use a library that requires to be run on NodeJS (like ssh2) on a server component?

Answered
Havana posted this in #help-forum
Open in Discord
HavanaOP
Can I use a library that requires to be run on NodeJS (like ssh2) on a server component?
Answered by Havana
It looks like the answer to my question is yes. In the case of ssh2, I had to update my next webpack config and add a node-loader.
View full answer

1 Reply

HavanaOP
It looks like the answer to my question is yes. In the case of ssh2, I had to update my next webpack config and add a node-loader.
Answer