Skip to content

Topology mismatch between auth.http port 4000, useGameStore port 4001, and README port 3001 #39

Description

@mercy60

Internal ID: #38

Imported from ISSUES.md via scripts/import-issues.mjs.

Problem Statement. Three sources of truth about the backend port:

  1. backend/src/auth/auth.http declares @baseUrl = http://localhost:4000.
  2. frontend/store/useGameStore.js hardcodes http://localhost:4001.
  3. README.md says "API → localhost:3001".

This is incoherent. Contributors cannot tell which port to use.

Expected Outcome. One source: .env exposes PORT, BACKEND_URL, FRONTEND_URL. Apps read from env.

Acceptance Criteria.

  • README, .http files, store all reference process.env.NEXT_PUBLIC_API_URL.

Implementation Notes.

  • Add NEXT_PUBLIC_API_URL to frontend/.env.example.
  • Replace localhost:4001 in useGameStore.js.

Files / modules affected.

  • frontend/store/useGameStore.js
  • frontend/store/reward/nft-reward-store.js
  • backend/src/auth/auth.http
  • README.md

Dependencies. None.

Difficulty / Effort. Easy / S (≈ 2 hours).

Labels. area:backend, area:frontend, developer-experience

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions