gabrielkim13 / next-pkg-app

Generate a single-binary executable for Next.js applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Next.js project bootstrapped with create-next-app, including pkg support.

Getting Started

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.

Learn More

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 and public directories.
  • 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.

About

Generate a single-binary executable for Next.js applications.


Languages

Language:TypeScript 82.5%Language:JavaScript 10.9%Language:CSS 6.6%