Repository navigation
Netlify deploy previews - #588
Merged
IstoraMandiri merged 5 commits intoSep 12, 2026
Merged
Conversation
Build with the same command and flags as the Jekyll CI workflow, publish _site, and pin Ruby 3.2.9 to match the CI runners. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Skip every deploy context except deploy-preview so production is never published from Netlify. Run bundle install as part of the build command so CLI- and agent-triggered builds do not fail with a missing jekyll binary. Pin Bundler 2.4.19 because the current lockfile's BUNDLED WITH 2.1.4 overflows the stack on Ruby 3.x. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
✅ Deploy Preview for ecips ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
With JEKYLL_ENV=production, jekyll-github-metadata rewrites site.baseurl from the GitHub Pages API. On Netlify that lookup fails and the gem falls back to /pages/<owner>/<repo>, which prefixed every link and stylesheet in deploy preview 588 and broke the page. CI never sets JEKYLL_ENV, so match it explicitly. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
diega
approved these changes
Sep 11, 2026
diega
left a comment
Contributor
There was a problem hiding this comment.
This is a great feature. Thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Netlify config so every pull request gets a deploy preview, without Netlify ever publishing the production site (which stays on GitHub Pages). The build runs the same Jekyll command as CI, is skipped for all contexts except deploy-preview, installs gems explicitly so CLI-triggered builds work, and pins Ruby 3.2.9 plus Bundler 2.4.19 because the current lockfile's Bundler 2.1.4 crashes on Ruby 3.x. The Bundler pin can be dropped once #583 lands.
Ref #587