-
Notifications
You must be signed in to change notification settings - Fork 26
[Build-Netlify] update netlify.toml file to build feature branch PRs #5860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,2 +1,14 @@ | ||||||||||||
| [build.environment] | ||||||||||||
| YARN_FLAGS = "--update-checksums" | ||||||||||||
| [build] | ||||||||||||
| ignore = ''' | ||||||||||||
| if [ "$CONTEXT" = "deploy-preview" ]; then | ||||||||||||
| if [ "$BRANCH" = "master" ]; then | ||||||||||||
| exit 1 | ||||||||||||
| fi | ||||||||||||
|
|
||||||||||||
| case "$BRANCH" in | ||||||||||||
| wip-*) exit 1 ;; | ||||||||||||
| *) exit 0 ;; | ||||||||||||
| esac | ||||||||||||
|
Comment on lines
+8
to
+11
|
||||||||||||
| fi | ||||||||||||
| exit 1 | ||||||||||||
|
||||||||||||
| exit 1 | |
| exit 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment is wrong based on Netlify documentation on ignore exit code
Copilot
AI
Feb 25, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous build.environment configuration with YARN_FLAGS has been completely removed without explanation. If this was intentional, consider documenting why this configuration is no longer needed. If the YARN_FLAGS setting is still required, it should be preserved alongside the new ignore configuration.
| ''' | |
| ''' | |
| # Note: A previous [build.environment] configuration with YARN_FLAGS was intentionally removed. | |
| # The build no longer relies on custom Yarn flags, so the YARN_FLAGS setting is not required here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this line since we have moved away from
yarnand now runpnpmas our package manager