-
Notifications
You must be signed in to change notification settings - Fork 8
4.0.0 #695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
react-dates is no longer maintained and no longer supports later react versions.
| target: API_HOST, | ||
| changeOrigin: true, | ||
| secure: false, | ||
| rewrite: (path) => path.replace(/^\/api/, '/api'), |
Check warning
Code scanning / CodeQL
Replacement of a substring with itself Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 months ago
To fix the issue, we need to replace the redundant path.replace(/^\/api/, '/api') operation with a meaningful transformation or remove it entirely if no transformation is needed. If the intention is to ensure the /api prefix remains unchanged, the function can simply return the path as is. Alternatively, if the intention is to rewrite the path in a specific way, the replacement logic should be corrected to achieve the desired transformation.
-
Copy modified line R46
| @@ -45,3 +45,3 @@ | ||
| secure: false, | ||
| rewrite: (path) => path.replace(/^\/api/, '/api'), | ||
| rewrite: (path) => path, | ||
| }, |
Migrated from Create React App (soft eject) to Vite
This allows a clear separation of build and runtime processes and values
Upgraded Node.js from 18 to 24
Reinstalled all packages to ensure compatibility
Upgraded necessary packages
Removed unused packages
Added ESLint + Prettier with custom rules
Applied those rules to the entire client codebase
Upgrade Bootstrap from 4 to 5:
upgraded deprecated react-dates to react-date-range
This involved fixing everything frontend as mentioned in their lengthy doc on migrating
Bugfixes:
Fixed multiple bugs introduced by upgraded libraries
Process improvements:
nginx start script and Dockerfiles modified to ensure compatbility with the new Vite build tool