Skip to content

Commit e566e6c

Browse files
committed
Update branch based context to production
This removes the branch based context of "context.main" which would be triggered and override any other contexts even during the PR cycle. The assumption here is that "production" context is marked appropriately on Netlify admin UI, and once it's in place, this should have the same effect to ensure we do not publish any draft or future date posts.
1 parent 2438801 commit e566e6c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

netlify.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ command = "git submodule update --init --recursive --depth 1 && make deploy-prev
2121
[context.branch-deploy]
2222
command = "git submodule update --init --recursive --depth 1 && make non-production-build && npx -y pagefind --site public"
2323

24-
[context.main]
25-
# This context is triggered by the `main` branch and allows search indexing
26-
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
24+
[context.production]
25+
# Rather than specifying context.main, which will supersede any of the above
26+
# context, make a production specific build separately based on the context
27+
# with the same priority.
28+
# Ref: https://docs.netlify.com/configure-builds/file-based-configuration/#deploy-contexts
2729
publish = "public"
2830
command = "git submodule update --init --recursive --depth 1 && make production-build && npx -y pagefind --site public"

0 commit comments

Comments
 (0)