Skip to content

fix: vercel rewrites for new EIP + add mainnet proxy - #40

Merged
owenwahlgren merged 1 commit into
mainfrom
fix/vercel-rewrites-new-eip
May 6, 2026
Merged

owenwahlgren merged 1 commit into
mainfrom
fix/vercel-rewrites-new-eip

Conversation

@owenwahlgren

Copy link
Copy Markdown
Collaborator

Summary

  • Default `FIRN_BOX` to `44.195.57.61` (new EIP).
  • Rename rewrite path `/api/firn/fuji` → `/api/firn/testnet` so it matches the public env-var convention (`NEXT_PUBLIC_FIRN_TESTNET`).
  • Add `/api/firn/mainnet` → `https://grotto..sslip.io` so the Vercel HTTPS frontend can reach Grotto via Caddy without mixed-content blocks.

After merge — Vercel env vars to set

  • `FIRN_BOX_HOST=44.195.57.61` (optional; this is now the default)
  • `NEXT_PUBLIC_FIRN_LOCAL=/api/firn/local`
  • `NEXT_PUBLIC_FIRN_TESTNET=/api/firn/testnet`
  • `NEXT_PUBLIC_FIRN_MAINNET=/api/firn/mainnet`

Then redeploy. The frontend will hit same-origin `/api/firn/*` paths and Vercel's edge will proxy server-side to the firn instances.

Test plan

  • `tsc --noEmit` clean (pre-existing `.next/dev/types` errors are unrelated)
  • `prettier --check` clean

- Default FIRN_BOX to 44.195.57.61 (the new Elastic IP)
- Rename rewrite path /api/firn/fuji → /api/firn/testnet so the path
  matches the public env-var convention (NEXT_PUBLIC_FIRN_TESTNET)
- Add /api/firn/mainnet → https://grotto.<dashed-ip>.sslip.io so the
  Vercel HTTPS frontend can reach Grotto via Caddy without
  mixed-content blocks
@owenwahlgren
owenwahlgren merged commit 5ba8950 into main May 6, 2026
3 checks passed
@owenwahlgren
owenwahlgren deleted the fix/vercel-rewrites-new-eip branch May 6, 2026 01:01
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