Skip to content

x-sb-edge-region not exposed imposible to do geo preference for read replicate. #630

@riderx

Description

@riderx

Bug report

-->

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

I'm starting to use read replicas to ensure my users get the fastest response possible all over the world.
I'm using Drizzle, so I cannot use the auto geo API from SDK.

I wanted to do it myself based on x-sb-edge-region as the doc in https://supabase.com/docs/guides/functions/regional-invocation say this value is available, btu it seems set after the function responds.

To Reproduce

Try to read the header in the edge function; you should have the region or an indication of where it's run from.

Expected behavior

x-sb-edge-region available

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions