Next.js
Next.js is a React framework that enables functionality such as server-side rendering and generating static websites.
Deploy with Nixpacks
Server build (Node.js)
- Set
Build Packtonixpacks.
Static build (SPA)
- Set
Build Packtonixpacks. - Enable
Is it a static site?. - Set
Output Directorytoout.
Deploy with Dockerfile
If you are having problems with Nixpacks or want more control over the building stage, you can use a Dockerfile.
Prerequisites
- Set
Ports Exposesfield to3000. - Create a
Dockerfilein the root of your project and copy the content from the official Next.js Repository. - Set the Build Pack to
Dockerfile.