fix(webapp): vercel deploy follow-ups (SPA routing, faucets, ignore file)#76
Merged
fix(webapp): vercel deploy follow-ups (SPA routing, faucets, ignore file)#76
Conversation
excludes target/, node_modules/, .git/, .claude/, audits/, runbooks/ so vercel deploy from repo root stays under file count limit.
direct visits to /faucet, /plans etc. were 404'ing on vercel because the static handler had no fallback to the SPA entrypoint.
local mint authority isn't available on Vercel, so swap the mint button for an anchor to https://faucet.circle.com/ when not in DEV.
Drop amount/recipient inputs and preset buttons in favor of a single inline link to faucet.circle.com, mirroring the existing SOL devnet fallback.
Compute Unit Report
Generated: 2026-04-30 |
Hardcoded TOKEN_2022_PROGRAM_ADDRESS broke txs against classic-Token mints (e.g. Circle USDC on devnet/mainnet). ATA CreateIdempotent was invoking Token-2022 GetAccountDataSize on a classic mint and bouncing with IncorrectProgramId. Add a small lib helper (resolveTokenProgram) that fetches the mint account once and caches its owner per (rpc, mint). Use it in useSubscriptionsMutations and plan-card init flow so each mutation plumbs the correct token program through to findAssociatedTokenPda, getCreateAssociatedTokenIdempotentInstruction, and the overlay builders.
added by vercel CLI on link.
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
.vercelignoreso monorepo deploys from repo root stay under the 15k file cap (excludestarget/,node_modules/,.git/,.claude/,audits/,runbooks/)webapp/vercel.json: SPA fallback rewrite —/(.*)→/index.html. Direct visits to/faucet,/plans, etc. were 404'ing on Vercel because the static handler had no fallback to the SPA entrypoint.faucet.circle.comlink, mirroring the existing SOL devnet fallback.Test Plan
pnpm --filter webapp buildsucceedsjust lint-checkandjust fmt-checkpass/faucet,/plans,/marketplace→ no 404pnpm --filter webapp dev) on localnet → setup wizard, mint USDC button, etc. still work