File: lib/api/axios.ts, line 16
When NEXT_PUBLIC_API_URL is not set, the axios client defaults to http://localhost:3001. In production, this will cause all API calls to fail. Add a build-time warning (via next.config.js environment validation) and a runtime console.warning in development. Additionally, the mock mode detection should be more explicit: if the API is unreachable, log a clearly formatted message.
Labels: enhancement
File:
lib/api/axios.ts, line 16When
NEXT_PUBLIC_API_URLis not set, the axios client defaults tohttp://localhost:3001. In production, this will cause all API calls to fail. Add a build-time warning (vianext.config.jsenvironment validation) and a runtime console.warning in development. Additionally, the mock mode detection should be more explicit: if the API is unreachable, log a clearly formatted message.Labels: enhancement