One9x Pages · template

Next.js static export

This page is the live output of a template repository. Copy it and you have a Next.js site that deploys itself to a URL of your own on every push.

Use this template →View the repo

Start from it

  1. Use this template on GitHub to get your own copy.
  2. Create a site and a token:
    $ one9x pages create mysite
    $ one9x tokens create "github actions"
  3. In the new repo, under Settings → Secrets and variables → Actions, add the variable ONE9X_SITE (mysite) and the secret ONE9X_TOKEN.
  4. Push. A pull request gets a preview URL; main goes live.

Or deploy what you already have

$ npm run build
$ one9x pages release ./out --site mysite --deploy

What this template sets up

Build commandnpm run build
Output folderout
Required configoutput: 'export' and trailingSlash: true
CIpreview URL on every pull request, publish on main