Resolve the right Beignet client base URL for Next.js.
Browser calls default to same-origin relative URLs. Server calls need an absolute URL, so this helper checks NEXT_PUBLIC_API_URL, then Vercel's deployment URL, then localhost.
NEXT_PUBLIC_API_URL
Resolve the right Beignet client base URL for Next.js.
Browser calls default to same-origin relative URLs. Server calls need an absolute URL, so this helper checks
NEXT_PUBLIC_API_URL, then Vercel's deployment URL, then localhost.