refactor(env): replace inline process.env reads with BACKEND_URL in tool-ui generators#1418
Conversation
…ool-ui generators
|
@VarunShukla07 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
refactor(env): replace inline process.env reads with BACKEND_URL in tool-ui generators
Motivation and Context
FIX #1374
Screenshots
API Changes
Change Type
Testing Performed
Checklist
High-level PR Summary
This PR refactors three tool-ui generator components to replace inline
process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URLreads with a centralizedBACKEND_URLconstant imported from@/lib/env-config. The change improves code maintainability by centralizing environment variable access and follows the DRY principle. This addresses issue #1374.⏱️ Estimated Review Time: 5-15 minutes
💡 Review Order Suggestion
surfsense_web/components/tool-ui/generate-resume.tsxsurfsense_web/components/tool-ui/generate-podcast.tsxsurfsense_web/components/tool-ui/video-presentation/generate-video-presentation.tsx