Skip to content

Clean up: remove temporary force-static from API routes#60

Merged
sparshsam merged 1 commit into
mainfrom
cleanup-remove-force-static
Jun 28, 2026
Merged

Clean up: remove temporary force-static from API routes#60
sparshsam merged 1 commit into
mainfrom
cleanup-remove-force-static

Conversation

@sparshsam

Copy link
Copy Markdown
Owner

The android CI no longer uses CAPACITOR_BUILD (output: export), so force-static/generateStaticParams on API routes are unnecessary and actively harmful.\n\n## Critical fixes\n\n- auth/callback: force-static caches the build-time redirect (to /login) for all GET requests, breaking Google OAuth PKCE callback for every user.\n- api/mcp/tokens: force-static on a GET handler caches the build-time 401 response, breaking the MCP token management page.\n\n## Hygiene\n\n- api/mcp/tokens/[id]: removed force-static + generateStaticParams + placeholder hack\n- api/identify: removed force-static (POST-only, harmless but misleading)\n\n## Verification\n\n- npm run typecheck ✅\n- npm run build ✅\n- grep -r force-static apps/web/src/app/*/route.ts0 results

@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
opensprout Ready Ready Preview, Comment Jun 28, 2026 3:04pm

@sparshsam sparshsam merged commit a758b3f into main Jun 28, 2026
4 checks passed
@sparshsam sparshsam deleted the cleanup-remove-force-static branch June 28, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant