Open
Conversation
The model page was embedded via iframe which hid the sidebar navigation and all the new pages (Parameters, Variables, Calibration, Validation). Now uses a Vercel rewrite to serve the model app directly at /:countryId/model, giving users the full sidebar-based layout. - Add Vercel rewrite: /:countryId/model -> policyengine-model.vercel.app - Remove Model.page.tsx iframe route from React Router - Add reloadDocument to Model nav link for full page navigation - Convert /methodology redirect to window.location for Vercel handling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
Adds "API" nav item between Model and About, linking to /us/api (household API documentation). Uses reloadDocument since it's a Vercel-rewritten route. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This reverts commit 55ce1c0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/:countryId/modelChanges
/:countryId/model→policyengine-model.vercel.app/?country=:countryId(before SPA catch-all)/methodologyredirect to full-page navigationreloadDocumentprop to force full page load for Vercel-rewritten routesreloadDocument: trueHow it works
The model app's Vite
baseis set tohttps://policyengine-model.vercel.app/so all asset references (JS, CSS) point directly to the model CDN. Only the HTML page is proxied through the Vercel rewrite — no asset path conflicts.Test plan
🤖 Generated with Claude Code