From cdba45e4de8dd68177bac7fe0647d263b3226b02 Mon Sep 17 00:00:00 2001 From: Nathan Date: Fri, 26 Jun 2026 09:52:15 -0400 Subject: [PATCH] fix: add getStaticProps to token page and wire prod MCP env MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- functions/.env.digital-testimony-prod | 3 ++- pages/dev/token.tsx | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/functions/.env.digital-testimony-prod b/functions/.env.digital-testimony-prod index 7e8fc71cc..dc012488e 100644 --- a/functions/.env.digital-testimony-prod +++ b/functions/.env.digital-testimony-prod @@ -1,2 +1,3 @@ TYPESENSE_API_URL=https://yyd73lsw3h.execute-api.us-east-1.amazonaws.com/search -FUNCTIONS_API_BASE=https://us-central1-digital-testimony-prod.cloudfunctions.net \ No newline at end of file +FUNCTIONS_API_BASE=https://us-central1-digital-testimony-prod.cloudfunctions.net +MCP_SERVER_URL=https://maple-mcp-server-652493556525.us-central1.run.app \ No newline at end of file diff --git a/pages/dev/token.tsx b/pages/dev/token.tsx index 4b5186d80..074bb7012 100644 --- a/pages/dev/token.tsx +++ b/pages/dev/token.tsx @@ -13,6 +13,7 @@ import { useAuth } from "components/auth" import { createPage } from "components/page" +import { createGetStaticTranslationProps } from "components/translations" import React, { useState, useCallback } from "react" function TokenPage() { @@ -146,6 +147,12 @@ export default createPage({ Page: TokenPage }) +export const getStaticProps = createGetStaticTranslationProps([ + "auth", + "common", + "footer" +]) + // ── Styles ──────────────────────────────────────────────────────────────────── const styles: Record = {