Skip to content

Vercel deployment has no backend route for /api requests #21

Description

@priscaenoch

Problem

vercel.json rewrites everything except /api/ to index.html:

{ "source": "/((?!api/).*)", "destination": "/index.html" }

The exclusion correctly avoids rewriting API calls, but nothing else in the configuration serves or proxies /api/. On Vercel those requests hit the static deployment and 404, so the app has no backend.

By contrast, the Docker deployment does define a proxy in nginx.conf (location /api/ { proxy_pass http://indexer:3001; }). The two deployment targets are therefore inconsistent: Docker proxies the API, Vercel does not.

What needs to be done

Files

  • vercel.json
  • README.md
  • coordinate with src/api.ts / API base configuration

Acceptance deliverables

  • A Vercel deployment can reach a configured indexer; /api calls no longer 404.
  • The three deployment paths are documented and consistent.

Tests to pass

  • Documented verification that a deployed build performs a successful API request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions