Skip to content

Fix CPA public navigation and deployment docs#139

Merged
Willxup merged 8 commits into
mainfrom
worktree-cpa-base-url-navigation
May 22, 2026
Merged

Fix CPA public navigation and deployment docs#139
Willxup merged 8 commits into
mainfrom
worktree-cpa-base-url-navigation

Conversation

@Willxup
Copy link
Copy Markdown
Owner

@Willxup Willxup commented May 22, 2026

Summary

  • add CPA_PUBLIC_URL support for browser-safe Back to CPA navigation
  • add Vite dev-server API proxy for local frontend/backend development
  • raise REDIS_QUEUE_BATCH_SIZE default to 10000
  • reorganize README/.env guidance and Docker examples

Validation

  • go test ./cmd/... ./internal/...
  • npm --prefix ./web run test
  • npm --prefix ./web run lint
  • npm --prefix ./web run typecheck
  • npm --prefix ./web run build
  • runtime check: built frontend, started Go backend once, verified /, /assets, /healthz, /api/v1/ping, and /api/v1/status on 127.0.0.1:18080

@Willxup Willxup changed the title [codex] Fix CPA public navigation and deployment docs Fix CPA public navigation and deployment docs May 22, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request focuses on improving project documentation, configuration flexibility, and the local development experience. Key changes include a comprehensive reorganization of the README and environment variable examples, the introduction of a configurable CPA_PUBLIC_URL to handle cross-domain navigation, and the addition of a Vite development proxy for the frontend. Additionally, the default Redis queue batch size has been increased to 10,000. A security review identified a potential XSS vulnerability in the URL pattern matching logic used for the 'Back to CPA' link, which should be restricted to safe protocols.

Comment thread web/src/pages/UsagePage.tsx Outdated
@Willxup Willxup marked this pull request as ready for review May 22, 2026 18:24
@Willxup Willxup merged commit 84250cc into main May 22, 2026
4 checks passed
@Willxup Willxup deleted the worktree-cpa-base-url-navigation branch May 22, 2026 18:41
berry-shake added a commit to berry-shake/cpa-usage-keeper that referenced this pull request May 23, 2026
Merge 9 upstream commits including:
- feat: support public CPA back link URL (Willxup#139)
- fix: restrict CPA public URL schemes
- fix: proxy api requests in frontend dev server
- feat: increase redis queue batch default
- docs/chore updates

Conflicts resolved:
- internal/api/router_test.go: kept fork's TestStatusReturnsForkVersionAndUpdateCheckFlag alongside upstream's CPA public URL tests
- web/vite.config.js: took upstream's env-driven proxy target with serve-only guard
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