Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

Only debug serialized rslib config when DEBUG=rslib in debug mode since users do not need to get normalized Rslib configuration in common.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 3, 2025 09:25
@netlify
Copy link

netlify bot commented Nov 3, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 51fb323
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/69087526b98eb5000855d411
😎 Deploy Preview https://deploy-preview-1312--rslib.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the ability to conditionally print the serialized Rslib configuration only when the DEBUG=rslib environment variable is set. Previously, the debug logs were always printed when debug logging was enabled.

Key changes:

  • Introduces a new shouldPrintSerializedRslibConfig() function to check if the DEBUG environment variable contains rslib
  • Conditionally prints the serialized Rslib config based on this check
  • Updates documentation in both English and Chinese to inform users about the new DEBUG=rslib option

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/core/src/cli/initConfig.ts Adds shouldPrintSerializedRslibConfig() function and wraps config debug logging with a conditional check
website/docs/en/guide/basic/configure-rslib.mdx Updates English documentation to mention the DEBUG=rslib environment variable option
website/docs/zh/guide/basic/configure-rslib.mdx Updates Chinese documentation to mention the DEBUG=rslib environment variable option

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

fi3ework
fi3ework previously approved these changes Nov 3, 2025
@Timeless0911 Timeless0911 enabled auto-merge (squash) November 3, 2025 11:09
@Timeless0911 Timeless0911 merged commit b974c30 into main Nov 3, 2025
16 checks passed
@Timeless0911 Timeless0911 deleted the debug-rslib-config branch November 3, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants