One9x Pages · template

Nuxt prerendered

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

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

$ npx nuxt generate
$ one9x pages release ./.output/public --site mysite --deploy

What this template sets up

Build commandnpx nuxt generate
Output folder.output/public
Notnuxt build — that is a server bundle
CIpreview URL on every pull request, publish on main