One9x Pages · template
SvelteKit adapter-static
This page is the live output of a template repository. Copy it and you have a SvelteKit site that deploys itself to a URL of your own on every push.
Start from it
- Use this template on GitHub to get your own copy.
- Create a site and a token:
$ one9x pages create mysite $ one9x tokens create "github actions"
- In the new repo, under Settings → Secrets and variables →
Actions, add the variable
ONE9X_SITE(mysite) and the secretONE9X_TOKEN. - Push. A pull request gets a preview URL;
maingoes live.
Or deploy what you already have
$ npm run build $ one9x pages release ./build --site mysite --deploy
What this template sets up
| Build command | npm run build |
|---|---|
| Output folder | build |
| SPA fallback | not used — a real HTML file per route |
| CI | preview URL on every pull request, publish on main |