Skip to content

feat: send the Netlify Server's generator when deploying - #12630

Merged
hrishikesh-k merged 3 commits into
mainfrom
hk/server-generator-field
Dec 3, 2026
Merged

hrishikesh-k merged 3 commits into
mainfrom
hk/server-generator-field

Conversation

@hrishikesh-k

Copy link
Copy Markdown
Contributor

Summary

Sends the Netlify Server's generator in the deploy's server object, like we already do for functions. The generator comes from the server's in-source config, or from the server block that frameworks write through the Frameworks API (@netlify/config keeps users from setting it in netlify.toml).

This updates @netlify/zip-it-and-ship-it to 16.7.0 and @netlify/config to 25.8.0, which read the generator.

@netlify/build stays on 37.8.0 for now. Newer versions only find framework-generated servers with the netlify_build_framework_server flag, and passing the site's flags to getServerEntry is in #12569. Until we update it, netlify deploy --build won't send the generator, because build 37.8.0 bundles the server with zip-it-and-ship-it 16.6.0. Once #12569 is merged, I'll update this branch from main and bump @netlify/build to 37.10.0.


  • Update or add tests (if any source code was changed or added) 🧪

Updates @netlify/zip-it-and-ship-it to 16.7.0 and @netlify/config to
25.8.0, which read the generator from the server's in-source config
and the Frameworks API server block.
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Improvements
    • Deployment processing now preserves server generator metadata, keeping this information available in server payloads.
  • Chores
    • Updated Netlify configuration and deployment packaging dependencies to newer compatible versions.

The dependency ranges for @netlify/config and @netlify/zip-it-and-ship-it are updated. ServerPayload gains an optional generator field. hashServer includes the server bundle’s generator in the payload when it is defined. Tests cover generator values from a server manifest and serverConfig.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Possibly related PRs

  • netlify/cli#12386: Adds deploy-side lookup of framework-written Netlify Servers through getServerEntry, which provides the server data path used to read the generator.
  • netlify/cli#12569: Passes site feature flags to getServerEntry, which gates framework-generated server detection used by the deploy path.

Suggested reviewers: eduardoboucas, ndhoule

Merge Risk: Minimal · up to 9a342 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: the deploy now sends the Netlify Server's generator. The raw summary shows the ServerPayload gaining an optional generator field and hashServer copying it into the pa…
Description check Passed The description explains the change: the generator is sent in the deploy's server object, the zip-it-and-ship-it and config dependencies are bumped, and @netlify/build is intentionally held at 37.8.0.…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: the deploy now sends the Netlify Server's generator. The raw summary shows the ServerPayload gaining an optional generator field and hashServer copying it into the payload, which matches the title.

Full details: Description check

Explanation

The description explains the change: the generator is sent in the deploy's server object, the zip-it-and-ship-it and config dependencies are bumped, and @netlify/build is intentionally held at 37.8.0. This matches the changeset summary.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: This review skipped 1 repository. Cross-repository analysis may be incomplete. Check linked repository access and settings.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: b49d054f-551c-4b99-b548-433b35a83ed7
Commits

Reviewing files that changed from the base of the PR and between 25bd154 and 9a3424a.

Files ignored due to path filters: 1

  • package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 3

  • package.json
  • src/utils/deploy/hash-fns.ts
  • tests/unit/utils/deploy/hash-fns.test.ts
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 9 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

📊 Benchmark results

Comparing with 25bd154

  • Dependency count: 967 ⬆️ 0.31% increase vs. 25bd154
  • Package size: 354 MB ⬆️ 0.29% increase vs. 25bd154
  • Number of ts-expect-error directives: 281 (no change)

@pkg-pr-new

pkg-pr-new Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/netlify-cli@12630

commit: 9a3424a

@hrishikesh-k
hrishikesh-k marked this pull request as ready for review December 3, 2026 13:13
@hrishikesh-k
hrishikesh-k requested a review from a team as a code owner December 3, 2026 13:13
@hrishikesh-k
hrishikesh-k merged commit 41ddb2d into main Dec 3, 2026
37 checks passed
@hrishikesh-k
hrishikesh-k deleted the hk/server-generator-field branch December 3, 2026 14:46
hrishikesh-k pushed a commit that referenced this pull request Dec 3, 2026
🤖 I have created a release *beep* *boop*
---


## [27.23.0](v27.22.1...v27.23.0)
(2026-12-03)


### Features

* send the Netlify Server's generator when deploying
([#12630](#12630))
([41ddb2d](41ddb2d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants