Beignet API reference
    Preparing search index...

    Function resolveNextBaseUrl

    • 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.

      Parameters

      Returns string