Skip to content

Commit

Permalink
Merge pull request #49153 from rytswd/netlify-respect-build-context
Browse files Browse the repository at this point in the history
Update branch based context to production for Netlify
  • Loading branch information
k8s-ci-robot authored Jan 7, 2025
2 parents e523212 + e566e6c commit 9f2292a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ command = "git submodule update --init --recursive --depth 1 && make deploy-prev
[context.branch-deploy]
command = "git submodule update --init --recursive --depth 1 && make non-production-build && npx -y pagefind --site public"

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

0 comments on commit 9f2292a

Please sign in to comment.