Skip to content

Commit 9f2292a

Browse files
authored
Merge pull request #49153 from rytswd/netlify-respect-build-context
Update branch based context to production for Netlify
2 parents e523212 + e566e6c commit 9f2292a

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)