Skip to content

Fix MCP token page and env functions#2176

Draft
nesanders wants to merge 1 commit into
codeforboston:mainfrom
nesanders:fix/token-page-i18n
Draft

Fix MCP token page and env functions#2176
nesanders wants to merge 1 commit into
codeforboston:mainfrom
nesanders:fix/token-page-i18n

Conversation

@nesanders

Copy link
Copy Markdown
Collaborator

Summary

Fixes raw i18n keys (navigation.bills, logInSignUp, etc.) rendering in the Navbar and Footer on /dev/token. The page was missing getStaticProps, so next-i18next never loaded the common, auth, or footer namespaces server-side.

Also adds MCP_SERVER_URL to functions/.env.digital-testimony-prod so the prod mcpProxy Firebase Function knows where to find the Cloud Run MCP server (previously it would return 503).

Checklist

  • On the frontend, I've made my strings translate-able.
  • If I've added shared components, I've added a storybook story.
  • I've made pages responsive and look good on mobile.
  • If I've added new Firestore queries, I've added any new required indexes to firestore.indexes.json

Screenshots

N/A — layout unchanged, fix is in data loading.

Known issues

/dev/token still has hardcoded English strings in its body (flagged by i18next/no-literal-string). This is a dev-only utility page, so this is probably ok.

Steps to test/reproduce

  1. Sign in at the dev or prod MAPLE site
  2. Navigate to /dev/token
  3. Confirm the Navbar and Footer render real text (Bills, Hearings, etc.) instead of raw keys

pages/dev/token.tsx was missing getStaticProps, so next-i18next never
loaded the common/auth/footer namespaces — Navbar and Footer rendered
raw translation keys (e.g. navigation.bills, logInSignUp).

Also adds MCP_SERVER_URL to the prod functions env so the mcpProxy
Firebase Function can reach the Cloud Run MCP server.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
maple-dev Ready Ready Preview, Comment Jun 26, 2026 2:07pm

Request Review

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