Gofiber and NextJS Static HTML
Gofiber with NextJS Static HTML is a small Go program to showcase for bundling a static HTML export of a Next.js app.
Requirements
- Go 1.17
- Yarn
Installing
Clone or download the repository:
$ git clone https://github.com/openmymai/portable.git
Usage
From the repository root directory, generate the static HTML export of the Next.js app, and build the Go binary:
$ cd nextjs
$ yarn install
$ yarn run export
$ cd ..
$ go build main.go
Then run the binary:
$ ./portable
License
© 2022 Sirisak Chantanate