8000 fix(config): only log config hot reload in dev by danielroe Β· Pull Request #5168 Β· nitrojs/nitro Β· GitHub
[go: up one dir, main page]

Skip to content

fix(config): only log config hot reload in dev - #5168

Open
danielroe wants to merge 1 commit into
nitrojs:mainfrom
danielroe:fix/hot-reload
Open

danielroe wants to merge 1 commit into
nitrojs:mainfrom
danielroe:fix/hot-reload

Conversation

@danielroe
Copy link
Copy Markdown
Member

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

this always looks a little strange to see a 'hot reload' message when building.

this does two things:

  1. respects nitro's own configured logger
  2. skips the hot reload message when building for production

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe
danielroe requested a review from pi0 as a code owner November 21, 2026 11:15
@vercel
vercel Bot commented Nov 21, 2026
Copy link
Copy Markdown

@danielroe is attempting to deploy a commit to the Nitro Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
coderabbitai Bot commented Nov 21, 2026 •
Copy link
8000 Copy Markdown
Contributor

Explain Change β†’

No actionable comments were generated in the recent review.

Walkthrough

Config updates now log the hot-reload success message through nitro.logger only in dev mode. Tests verify logging in dev mode and no logging in the default setup.

Changes: Config reload logging

Layer / File(s) Summary
Conditional reload logging
src/config/update.ts, test/unit/update-config.test.ts
updateNitroConfig logs the success message through nitro.logger only when dev mode is enabled. Tests check dev and default setups.

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

Change: Bug fix

Suggested labels: bug

Merge Risk: Minimal Β· up to dd192

This change logs the config hot-reload message through Nitro's logger only in dev mode, so production builds no longer show it. The risk is very low, and no blocking issues were found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(config): only log config hot reload in dev" follows the Conventional Commits format with a type, scope, and colon. It describes the main change: the hot-reload message now logs only in …
Description check Passed The description explains the purpose of the change. It states that the hot-reload message looks strange during builds. It lists two effects: the change uses Nitro's configured logger, and it skips the…
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 "fix(config): only log config hot reload in dev" follows the Conventional Commits format with a type, scope, and colon. It describes the main change: the hot-reload message now logs only in dev mode. The title meets the configured requirement.

Full details: Description check

Explanation

The description explains the purpose of the change. It states that the hot-reload message looks strange during builds. It lists two effects: the change uses Nitro's configured logger, and it skips the message for production builds. It also marks the change as a bug fix. The description relates directly to the changeset, although the template checklist items are unchecked.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

  • Create a new PR
  • Autofix Β· Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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: Advanced
  • Run ID: 2ae4b284-00e4-454b-97d7-38334c2cca9a
Commits

Reviewing files that changed from the base of the PR and between 571aade and dd1928d.

Files selected for processing: 2

  • src/config/update.ts
  • test/unit/update-config.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@pkg-pr-new
pkg-pr-new Bot commented Nov 21, 2026
Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/nitro@5168

commit: dd1928d

This branch has not been deployed

No deployments
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.

1 participant

0