Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow default self-hosted tenant name to be configurable via ENV #1222

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sbeardsley
Copy link

What kind of change does this PR introduce?

self-hosted seed update to allow tenant_name to be configurable via environment variable.

What is the current behavior?

The current behavior requires the container name to be "realtime-dev". If it isn't then it will not match the default tenant. In cases where the container name will be different (i.e. kubernetes deployments) it is impossible to use default tenant.

What is the new behavior?

The new behavior allows to configure the default tenant_name via an environment variable named TENANT_NAME with fallback behavior to the original "realtime-dev".

Additional context

This was an issue for the supabase-kubernetes project. I have submitted a PR there as well to overwrite the seeds.exs file in supabase-community/supabase-kubernetes#91

Ultimately it would be better to have this be configuration change upstream in this repo.

Copy link

vercel bot commented Nov 14, 2024

@sbeardsley is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to 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.

1 participant