Skip to content

move frontend off ponder, onto shovel#47

Merged
frolic merged 1 commit into
mainfrom
web-off-ponder
Jul 3, 2026
Merged

move frontend off ponder, onto shovel#47
frolic merged 1 commit into
mainfrom
web-off-ponder

Conversation

@frolic

@frolic frolic commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Step 2 of consolidating indexing onto shovel (follows #46).

The file explorer was the only live ponder consumer, and it wasn't even using @ponder/client — it fetched ${NEXT_PUBLIC_PONDER_URL}/api/[chainId]/files from the ponder service. The web app already serves an identical route (same OnchainFile shape, same Sepolia gunzipScripts metadata fix) backed by the shovel files_created table, so this just points the fetch at the app's own route.

  • FileExplorer.tsx: fetch same-origin /api/[chainId]/files instead of the ponder service
  • delete src/ponder.ts (dead code — nothing imported it)
  • drop @ethfs/ponder + @ponder/client deps from web
  • remove NEXT_PUBLIC_PONDER_URL from render.yaml

Verified: pnpm build passes; ran the dev server against the production shovel DB and confirmed /api/1/files (and filename search) returns current data with correct shape.

Note for local dev: the web app now needs DATABASE_URL in packages/web/.env.local (it's the commented-out first line) instead of a running ponder.

🤖 Generated with Claude Code

FileExplorer now fetches the app's own /api/[chainId]/files route
(served from the shovel files_created table) instead of the ponder
service. Removes the unused @ponder/client setup and the
NEXT_PUBLIC_PONDER_URL env var.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@frolic frolic mentioned this pull request Jul 3, 2026
@frolic frolic merged commit cfe9d5d into main Jul 3, 2026
5 of 6 checks passed
@frolic frolic deleted the web-off-ponder branch July 3, 2026 22:16
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