-
Notifications
You must be signed in to change notification settings - Fork 134
fix(frontend): update env vars for dev #3557
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: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
PR Review: fix(frontend): update env vars for devSummaryThis PR simplifies frontend environment variable configuration by:
✅ Positive Changes
🔍 Issues & Concerns1. Code Duplication Between Files (Medium Priority)There are two nearly identical
Issue: The only difference is the SSR check ( Recommendation: Consider consolidating these files or adding a comment explaining why both exist. 2. Missing SSR Safety in One File (Low Priority)
Current code: if (apiEndpoint === "__SAME__") {
return location.origin; // Could fail in SSR
}Recommendation: For consistency and SSR safety, use: if (typeof window !== "undefined" && apiEndpoint === "__SAME__") {
return window.location.origin;
}3. Environment Variable Validation (Low Priority)In Question: Is the 4. Removed Environment Variable Reference (Low Priority)The removed line from VITE_APP_CLOUD_ENGINE_URL: z.string().url(),Question: Are there any other parts of the codebase that might still reference this variable? The grep showed no results, so this appears safe. 🧪 Testing Recommendations
📊 Code Quality Metrics
✏️ Minor Suggestions
🎯 VerdictOverall: This is a solid cleanup PR that simplifies the configuration. The main concerns are:
Recommendation: Approve with minor changes - fix the SSR safety issue in Automated review by Claude Code |
91c693f to
f28b5ac
Compare
f28b5ac to
e211bb1
Compare
799cad2 to
def9fd8
Compare
e211bb1 to
6134af8
Compare
6134af8 to
bded0cb
Compare
bded0cb to
ee7fdbd
Compare

No description provided.