yyqdbngt opened a new pull request, #3869:
URL: https://github.com/apache/rocketmq-dashboard/pull/3869

   ### Motivation
   
   The existing `config.test.ts` covers the default `/api` fallback and 
trailing-slash stripping, but never exercised the `VITE_API_BASE_URL` env 
override that the module reads at build time.
   
   ### Changes
   
   - `honors a configured API base url without a trailing slash`: stubbing 
`VITE_API_BASE_URL` and reloading the module yields the absolute base url with 
the trailing slash removed.
   
   ### Verification
   
   ```
   ./node_modules/.bin/vitest run src/config.test.ts   # 4 passed
   ./node_modules/.bin/tsc --noEmit                    # clean
   ./node_modules/.bin/eslint src/config.test.ts         # clean
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to