This is a Next.js project bootstrapped with create-next-app
, including pkg support.
First of all, install dependencies using Yarn:
yarn
Run the pkg
script to generate the single-binary executable for the sample Next.js application:
yarn pkg
Then run it with:
NODE_ENV=production ./next-pkg-app
Open http://localhost:3000 with your browser to see the result.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Custom Server - used to override the directory in which the Next.js application searches for the
.next
andpublic
directories.
- Custom Server - used to override the directory in which the Next.js application searches for the
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
And also check out pkg's README.