Skip to content

Update README.md - #117

Merged
soedirgo merged 1 commit into
supabase:masterfrom
Kosai106:patch-1
Jul 21, 2020
Merged

Update README.md#117
soedirgo merged 1 commit into
supabase:masterfrom
Kosai106:patch-1

Conversation

@Kosai106

Copy link
Copy Markdown
Contributor
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Typo fix

@soedirgo

Copy link
Copy Markdown
Member

Hey there, thanks for the contribution! :)

@soedirgo
soedirgo merged commit a96217a into supabase:masterJul 21, 2020
@Kosai106
Kosai106 deleted the patch-1 branch July 21, 2020 09:45
vonovak pushed a commit to vonovak/supabase that referenced this pull request Mar 1, 2024
…client-class-complexity
refactor: reducing the complexity of the SupabaseRealtimeClient class
rishFilet pushed a commit to rishFilet/supabase-fork that referenced this pull request Jul 25, 2025
raulb added a commit that referenced this pull request Aug 28, 2026
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.
YES
## What kind of change does this PR introduce?
Feature (self-hosted Edge Functions)
## What is the current behavior?
The self-hosted Edge Functions router
(`docker/volumes/functions/main/index.ts`) doesn't tell a function which
slug a request resolved to. As a result, `@supabase/server`'s
`withOAuthProtectedResource` can't derive its canonical resource URL and
falls back to reconstructing it from the request path against the
internal `api-gw` origin, so the advertised OAuth Protected Resource is
/wrong for self-hosted deployments.
## What is the new behavior?
`main/index.ts` now injects `SUPABASE_FUNCTION_SLUG: service_name` per
request (after the `Deno.env.toObject()` snapshot, so nothing in the
container env can shadow it).
Combined with the operator's `SUPABASE_PUBLIC_URL`, the advertised
resource is the correct external
`{SUPABASE_PUBLIC_URL}/functions/v1/{slug}`, not the internal
`http://api-gw:8000`.
Verified on the docker stack: the slug is injected per-function, the
resource origin resolves to `SUPABASE_PUBLIC_URL`, and the `401`
`www-authenticate` carries the right `resource_metadata`.
## Additional context
Fixes AI-1128
Companion to `@supabase/server` [PR
#117](supabase/server#117) and the [CLI slug
injection](supabase/cli#6345)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Edge workers now receive the correct function slug in their runtime
environment, improving per-function request handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Kosai106@soedirgo