Set NEXT_PUBLIC_KEY_API (or NEXT_PUBLIC_API_BASE_URL) in .env (default http://localhost:6050). Ensure this app's origin is in Nest ALLOWED_ORIGINS.
NEXT_PUBLIC_KEY_API
NEXT_PUBLIC_API_BASE_URL
.env
http://localhost:6050