Pages
What this solves
You want a Vite app deployed from Forgejo without adding a separate hosting control plane.
Vite sites usually need only dependency install, build, artifact sanity check, and Pages publish.
Pages
You want a Vite app deployed from Forgejo without adding a separate hosting control plane.
Vite deployments are simple when the base path and output directory are explicit. Build once in Actions, verify the generated assets exist, then let Pages serve the static output.
name: pages
on: [push]
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npm run build
- run: test -f dist/index.htmlCheck `base` in Vite config when serving from a path.
Make environment variables explicit for production builds.
Use previews before replacing an existing public site.
Deploy an Astro site with Forgejo Actions and Fjord Pages: install dependencies, build to dist, and publish the static output straight from a workflow.
Plan custom domains for Forgejo Pages sites, including DNS records, HTTPS expectations, verification steps and when to keep a default domain.
Plan Docker image builds on Forgejo Actions runners, including cache behavior, registry login, secrets and when dedicated runners help.