Skip to content

Update Nacos configuration to use NACOS_ENDPOINT and adjust default v…#7

Merged
abu0306 merged 1 commit into
devfrom
hotfix/tools
Mar 10, 2026
Merged

Update Nacos configuration to use NACOS_ENDPOINT and adjust default v…#7
abu0306 merged 1 commit into
devfrom
hotfix/tools

Conversation

@abu0306

@abu0306 abu0306 commented Mar 10, 2026

Copy link
Copy Markdown
Collaborator

This pull request updates the Nacos configuration fetching logic in lib/server/nacos.ts to improve environment variable handling and logging. The main changes include switching to more standard environment variable names, updating default values, and cleaning up unnecessary debug logs.

Environment variable handling improvements:

  • Changed the environment variable for the Nacos server address from NACOS_SERVER_ADDR to NACOS_ENDPOINT, and updated related log messages for consistency.
  • Updated the default value of NACOS_DATA_ID to .env and NACOS_GROUP to table-search for more appropriate configuration defaults.

Code cleanup:

  • Removed unnecessary debug logging of process.env.USE_MOCK_SEARCH to reduce log noise. [1] [2]…alues for dataId and group

@abu0306 abu0306 merged commit a7cfb21 into dev Mar 10, 2026
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