Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
[[plugins]]
package = "@netlify/plugin-nextjs"

# Preview and branch builds are skipped to protect the production build-minute
# budget. `ignore` runs before each build: exit 0 cancels the build, non-zero
# proceeds. Deploy-preview (PR) and branch-deploy contexts are already covered
# by the GitHub Actions `build-and-e2e` job (real `next build` + Cypress
# browser contract), so rebuilding them on Netlify only spends minutes that the
# production context needs. The production context has no `ignore`, so pushes to
# main always build and deploy.
[context.deploy-preview]
ignore = "exit 0"

# PR deploy previews build and deploy on Netlify. The intended paid tier is
# Personal; Deploy Previews do not require Pro. Once Personal is active on the
# team that owns this site, the Free-plan quota that forced us to skip preview
# builds in #261 no longer applies. Deploy previews give reviewers a live,
# rendered URL per PR, which the GitHub Actions `build-and-e2e` job (headless
# `next build` + Cypress) cannot.
#
# `ignore` runs before each build: exit 0 cancels the build, non-zero proceeds.
# The production context has no `ignore`, so pushes to main always build and
# deploy. Branch-deploy stays skipped: per-branch deploys are lower value than
# PR previews and would still spend minutes with no reviewer attached.
[context.branch-deploy]
ignore = "exit 0"

Expand Down
Loading