Uh oh!
There was an error while loading. Please reload this page.
chore(deploy): trigger prod frontend rebuild (bake NEXT_PUBLIC_API_URL into client) - #314
Conversation
No code change (empty commit, same tree as production HEAD). Purpose: make Cloudflare Workers Builds re-run the prod `frontend` build so the corrected NEXT_PUBLIC_API_URL / BACKEND_URL build variables get inlined into the client bundle. The prior live worker came from a local `npm run cf:deploy` whose build had no NEXT_PUBLIC_API_URL, so the Sign-in button saw it empty and showed 'Google sign-in is not configured'. A CI build with the build variables fixes it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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 Plus 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 |
Deploying with |
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs | frontend-staging | c2b1f3c | Commit Preview URL Branch Preview URL | Jul 03 2026, 04:20 AM |
No code change (empty commit). Purpose: make Cloudflare Workers Builds re-run the prod
frontendbuild so the correctedNEXT_PUBLIC_API_URL/BACKEND_URLbuild variables get inlined into the client bundle.Why
The current live worker came from a local
npm run cf:deploywhosenext buildhad noNEXT_PUBLIC_API_URLexported → it inlined empty into the client JS. Result: the Sign-in button readsprocess.env.NEXT_PUBLIC_API_URL === ""and shows "Google sign-in is not configured on the server." (verified: 0 of 14 client chunks contain the API URL). The runtime binding was prod (so the redirect/cookie looked fixed), but the client bundle wasn't.A CI Workers Build uses the build variables set in the dashboard, so this rebuild bakes
api.saplinglearn.cominto the client and fixes sign-in.After merge — verify
api.saplinglearn.com.npx wrangler deploy(not--env staging) and bindings are prod.🤖 Generated with Claude Code