Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions apps/web/src/shared/utils/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const API_BASE_URL =
import.meta.env.MODE === "production"
? "/api/v1" // Relative URL - nginx will proxy to backend
: import.meta.env.VITE_API_URL || "http://localhost:3002/api/v1";
import.meta.env.VITE_API_URL || // Check env var first (for Vercel, etc)
(import.meta.env.MODE === "production"
? "/api/v1" // Relative URL - nginx will proxy to backend (EC2)
: "http://localhost:3002/api/v1");

export interface ApiError {
error: string;
Expand Down