Next.js Discord

Discord Forum

server2.js is work, but server1.js is not work

Answered
malibil posted this in #help-forum
Open in Discord
server1.js == server2.js
just different between, i add dir: "./client2 on the server1.js
here is the github repository with all the explanations. please help me.
https://github.com/muhammedalibilgin/nextjsAndNodejs

3 Replies

can someone help me
anybody can help me?
server.js must be a higher direction
https://github.com/vercel/next.js/tree/canary/examples/custom-server

so like this:
+server.js
+client
--pages
--.next
Answer