PolicyEngine / PolicyEngine/policyengine-scorecard
policyengine.org/scorecard is a second, hand-fed Vercel project — script the dual-mount build or consolidate the rewrite
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 6d 12h
- Merged PRs (30d)
- 32
Description
www.policyengine.org/scorecard is proxied (policyengine-app-v2 website/vercel.json:169-176) to the policyengine-scorecard Vercel project — separate from the repo-linked policyengine--policyengine-scorecard that app/.vercel deploys. The proxied copy only updates when someone hand-ships it, so the site fell behind main (it predated #82 until 2026-08-22).
The proxy shape also has a mount subtlety: the exact /scorecard rewrite serves the app at a no-trailing-slash document URL, where the Vite base: "./" build's relative assets resolve to /assets on the website origin and 404. The working deploy ships the static output twice — at root and under scorecard/ — with <base href="scorecard/"> (relative) in the root index and <base href="/scorecard/"> (absolute) in the nested index. Recipe preserved in the ops notes; first attempt without it briefly broke the site path on 2026-08-22.
Options:
- Script it: a
build:sitestep inapp/package.jsonthat emits the dual-mount output + base tags, and a documented deploy command for the second project (or a CI job on main-push, mirroring the Supabase DB publish). - Consolidate: point the website rewrite at the repo-linked project's alias and give that build the dual-mount layout, retiring the second project.
Either way the site surface stops being hand-fed folklore.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read app/package.json, policyengine-app-v2 website/vercel.json lines 169-176, and the ops notes; inspect the existing Vite output and deploy path first. Decide whether to automate the second project or consolidate it, then verify that main updates the deployed scorecard and that /scorecard assets resolve correctly in both mount forms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vite
- Domain
- build-system, devops, web-dev
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100