Skip to content

[codex] Fix Polymarket base path issues#2060

Merged
babgev merged 2 commits into
devfrom
babgev/fix-relay-endpoint-404
Jul 8, 2026
Merged

[codex] Fix Polymarket base path issues#2060
babgev merged 2 commits into
devfrom
babgev/fix-relay-endpoint-404

Conversation

@babgev

@babgev babgev commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Fixes two Polymarket production issues caused by the app being served under /app: legacy Safe nonce relay calls now include router.basePath, and local public images are prefixed with the same base path before going through next/image.

The relayer helper signatures now require basePath, so future relay calls do not silently fall back to root /api/... URLs.

This resolves both the relay 404 and the Polymarket logo optimizer 400 where url=/images/polymarket.png should be url=/app/images/polymarket.png.

Validation: git diff --check passed; local curl checks show the old optimizer URL returns 400 and the fixed base-path URL returns 200; pnpm exec tsc --noEmit still fails on existing missing PNG module declarations in FeeDetails and SwapGuide.

@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
layerswapapp Canceled Canceled Jul 8, 2026 1:04am

Request Review

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🚀 Storybook preview: https://layerswap.github.io/layerswapapp/pr-preview/pr-2060/

@babgev babgev changed the title [codex] Fix Polymarket relay base path [codex] Fix Polymarket base path issues Jul 8, 2026
@babgev babgev marked this pull request as ready for review July 8, 2026 01:02
@babgev babgev merged commit 9f640b6 into dev Jul 8, 2026
1 of 2 checks passed
@vercel vercel Bot temporarily deployed to Preview – layerswapapp July 8, 2026 01:04 Inactive
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