fix: Web NEXT_PUBLIC_API_URL — add /api/v1 path suffix
Some checks failed
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 7s
CI / E2E Tests (push) Has been skipped
Deploy / Build API Image (push) Failing after 11s
Deploy / Build Web Image (push) Failing after 12s
Deploy / Build AI Services Image (push) Failing after 12s
E2E Tests / Playwright E2E (push) Failing after 13s
Deploy / Deploy to Staging (push) Has been skipped
Deploy / Smoke Test Staging (push) Has been skipped
Deploy / Deploy to Production (push) Has been skipped
Deploy / Smoke Test Production (push) Has been skipped
Deploy / Rollback Staging (push) Has been skipped
Deploy / Rollback Production (push) Has been skipped
Some checks failed
CI / Lint → Typecheck → Test → Build (22) (push) Failing after 7s
CI / E2E Tests (push) Has been skipped
Deploy / Build API Image (push) Failing after 11s
Deploy / Build Web Image (push) Failing after 12s
Deploy / Build AI Services Image (push) Failing after 12s
E2E Tests / Playwright E2E (push) Failing after 13s
Deploy / Deploy to Staging (push) Has been skipped
Deploy / Smoke Test Staging (push) Has been skipped
Deploy / Deploy to Production (push) Has been skipped
Deploy / Smoke Test Production (push) Has been skipped
Deploy / Rollback Staging (push) Has been skipped
Deploy / Rollback Production (push) Has been skipped
api-client.ts uses NEXT_PUBLIC_API_URL as base URL for all fetch calls. Without /api/v1, requests go to /listings instead of /api/v1/listings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@ RUN pnpm install --frozen-lockfile --filter @goodgo/web...
|
||||
# ---- Build ----
|
||||
FROM base AS build
|
||||
# NEXT_PUBLIC_* vars are baked into JS bundle at build time
|
||||
ARG NEXT_PUBLIC_API_URL=https://api.goodgo.vn
|
||||
ARG NEXT_PUBLIC_API_URL=https://api.goodgo.vn/api/v1
|
||||
ARG NEXT_PUBLIC_WEB_URL=https://platform.goodgo.vn
|
||||
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
|
||||
ENV NEXT_PUBLIC_WEB_URL=$NEXT_PUBLIC_WEB_URL
|
||||
|
||||
Reference in New Issue
Block a user