perf(ci): speed up preview deploy with vercel prebuilt and skip sentry source maps#2712
perf(ci): speed up preview deploy with vercel prebuilt and skip sentry source maps#2712
Conversation
Code Review: PR #2712perf(ci): speed up preview deploy with vercel prebuilt and skip sentry source maps SummaryThis PR switches web preview deployments from remote builds on Vercel to local pre-build + deploy artifacts ( Critical Issues (P0)1. Build is broken: missing The In the previous remote-build mode, Fix required: Add High Priority (P1)2. Potential for other missing build-time environment variables Beyond 3. Both 4. Environment variable duplication in prebuilt mode In prebuilt mode, environment variables are parsed three separate times (lines 83-93, 113-124, and the export on lines 85-93 vs. Design & Architecture Observations5. Backward compatibility is well-handled The 6. Sentry source maps change is sound The 7. No test coverage concern This PR modifies CI/CD configuration and build settings, so the lack of unit/integration test changes is expected and appropriate. The test plan relies on verifying the CI pipeline itself works, which is the correct approach for infrastructure changes. Recommendations
VerdictChanges Requested -- The deploy-web build is broken due to a missing environment variable ( Reviewed by Claude Code |
The blog page requires NEXT_PUBLIC_STRAPI_URL at build time. In remote build mode it was provided by Vercel project settings, but in prebuilt mode it must be explicitly passed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
182983c to
96310b3
Compare
Add heavy dependencies to next.js optimizePackageImports to reduce tree-shaking and compilation time during builds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
vercel deploy) to local pre-build + deploy artifacts (vercel build+vercel deploy --prebuilt), eliminating the remotepnpm installand remotenext buildon Vercel's infrastructureprebuiltinput tovercel-deployaction (defaultfalse, onlydeploy-webusestrue)Test plan
deploy-web— verify the preview deployment succeedsdeploy-docsanddeploy-platformjobs are unaffectedCloses #2710
🤖 Generated with Claude Code