Created for vercel/next.js#45743
This is based on example https://github.com/vercel/next.js/tree/canary/examples/custom-server
I personally recommend (and use) Gitpod for testing as it doesn't require local setup and doesn't cost a lot (compared to GitHub Codespaces). If you do choose to use a local environment (or another cloud development environment like GitHub Codespaces), please make sure you're using a Unix-based environment (e.g. Linux/macOS/WSL2) and you have Node.js 14.6.0 or later installed. You also need the OpenSSL unix command in order to generate a test-only key/certificate.
PLEASE NOTE: this reproduction can only be tested on Unix-based environments. This means you cannot test it on Windows without using a WSL environment.
If you're on Windows, install a working WSL2 environment by following the instructions here.
Once you started the server (yarn dev
or yarn start
after successful build), go to http://localhost:3000/c
to view errors in the console.
Note: if you use Gitpod, it will return a Port ... not found
error if you directly access the HTTPS server on the browser.
Also note that you may not raise questions or pull requests here. Please write comments directly to the thread mentioned above.