dstotijn/golang-nextjs-portable
Acerca de
Go program with embedded Next.js app.
Desarrollo web y de aplicacionesCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalgolang-nextjs-portable
golang-nextjs-portable is a small Go program to showcase the embed package
for bundling a static HTML export of a Next.js app.
👉 Read the companion article that walks through this project.

Requirements
- Go 1.18
- Yarn
Note: While the embed package was added in Go 1.16, the all: prefix of
the embed directive was added in 1.18. We use all: in this project because
Next.js static exports contain files and direcories with underscore prefixes.
Installing
Clone or download the repository:
$ git clone [email protected]:dstotijn/golang-nextjs-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 .
Then run the binary:
$ ./golang-nextjs-portable
2021/04/27 14:55:38 Starting HTTP server at http://localhost:8080 ...
License
Explorar proyectos relacionados
Cargando…