Look at the Nuxt documentation to learn more.
Make sure to install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun installStart the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run devBuild the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run buildLocally preview production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run previewCheck out the deployment documentation for more information.
The site is deployed to GitHub Pages by the
Deploy to GitHub Pages workflow, which builds
with NITRO_PRESET=github_pages and publishes .output/public.
The Pages source is set to GitHub Actions, not "Deploy from a branch". The
workflow is the only publisher — there is no branch whose contents are served
directly, and the CNAME file in the repository root is inert (the custom
domain pizzigolot.to comes from the repository Pages settings).
Branch flow:
development ──PR──▶ main ──push triggers──▶ deploy workflow ──▶ pizzigolot.to
-
Work lands on
development, then reachesmainthrough a pull request. -
Only pushes to
maintrigger a deployment. -
To redeploy without a code change, re-run the workflow rather than committing to
main:gh workflow run "Deploy to GitHub Pages" --ref main
Note
This replaces the previous flow, where development was merged into master
and GitHub Pages served that branch directly. master no longer exists and
merging into it does nothing.