Closed rithviknishad closed 1 day ago
The changes in this pull request focus on modifying the validation schema for the REACT_PLAUSIBLE_SITE_DOMAIN
environment variable in the Vite configuration file. The validation criteria have shifted from requiring a URL string to enforcing a regex pattern that specifies a valid domain name format. This update includes an alphanumeric start, permissible characters, and a requirement for a valid top-level domain, along with a descriptive message to clarify the expected format.
File | Change Summary |
---|---|
vite.config.mts | Updated validation schema for REACT_PLAUSIBLE_SITE_DOMAIN from URL to regex pattern with a description. |
In the land of code where rabbits play,
A domain's format found its way.
No more URLs, just a regex dance,
With alphanumeric hops, it takes a chance.
So let the domains leap and bound,
In Vite's embrace, new rules are found! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | b7603f5335121eca7748c5d6387f04940933103a |
Latest deploy log | https://app.netlify.com/sites/care-ohc/deploys/673de5f5ff1c520008840ea9 |
Deploy Preview | https://deploy-preview-9168--care-ohc.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
LGTM
Failed #3937
•
b7603f5335: fix plausible site domain env validation
Project |
CARE
|
Branch Review |
rithviknishad/fix/env-validation-plausible-site-domain
|
Run status |
Failed #3937
|
Run duration | 05m 00s |
Commit |
b7603f5335: fix plausible site domain env validation
|
Committer | Rithvik Nishad |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
1
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
128
|
View all changes introduced in this branch ↗︎ |
View
Output
Test | Artifacts | |
---|---|---|
Patient Medicine Administration > Add a new titrated medicine for a patient | Individual Administeration | |
Test Replay
Screenshots
|
@rithviknishad @rithviknishad Your efforts have helped advance digital healthcare and TeleICU systems. :rocket: Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! :raised_hands:
Issue
Builds failing due to incorrect env validation (from #9032)
Proposed Changes
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
REACT_PLAUSIBLE_SITE_DOMAIN
environment variable to enforce a specific domain name format.