GithubHelp home page GithubHelp logo

Comments (7)

encima avatar encima commented on July 23, 2024 1

Hello @huiali

Thanks for opening. I will try and address all of these and, where the documentation is lacking, please highlight them and we can get them in the docs.

  1. Single project - Self-hosted Supabase does only allow a single project / single org and I am afraid it is not possible to modify as the local version runs without a management API/database to handle multiple projects. You can run multiple instances to allow for multiple projects
  2. Cloud functions - Edge functions are supported in the self-hosted version. You can create them with supabase functions new NAME
  3. Support for multiple databases - A database is unique to a project and cannot be shared. You can, however use wrappers to connect to other databases
  4. Auth - Supabase has Auth built in, so it is easiest to use that. However, you can integrate with almost any Auth provider, here is an example using Clerk and the steps are similar

from supabase.

huiali avatar huiali commented on July 23, 2024

Hello @encima,

Thank you for your prompt response and for addressing my initial queries. I appreciate the clarification provided. I have a couple of follow-up questions and an illustration regarding one of the points:

Cloud Functions Support:

Regarding cloud functions, I am particularly interested in enabling them in my local environment. I attempted to set the variable NEXT_PUBLIC_IS_PLATFORM=true, which led to the login interface, but I encountered errors upon logging in. Could you provide a detailed guide or recommended steps to enable cloud functions in the local version? Below is a screenshot of the error I encountered:

image

Other Issues:

I am satisfied with the explanations provided for my other questions. My main focus now is on enabling cloud functions locally.
Thank you once again for your assistance and support.

Best regards,

from supabase.

encima avatar encima commented on July 23, 2024

Hi @huiali

Glad that it helped! A guide for hosting edge functions locally is here
The creation and deployment is managed completely by the CLI so the dashboard does not include them.

For logs, you can use the CLI: supabase functions serve and logs will be streamed in the terminal

from supabase.

huiali avatar huiali commented on July 23, 2024

@encima I am currently unable to render the cloud functions interface on the dashboard. Although I set the NEXT_PUBLIC_IS_PLATFORM=true variable, which made the menu visible, I encountered errors and was unable to access it. How can I properly configure this setting to render the cloud functions interface without errors?

image

Thank you for your help.

from supabase.

encima avatar encima commented on July 23, 2024

That variable is for the Platform dashboard and is not available in self-hosted.

from supabase.

huiali avatar huiali commented on July 23, 2024

Hello @encima,

Thank you for your prompt response and for addressing my initial queries. I appreciate the detailed explanations provided.

However, I still have some questions regarding enabling the cloud functions interface on the dashboard and supporting platform functionalities in a self-hosted environment:

Cloud Functions Interface on the Dashboard:
I understand that the variable NEXT_PUBLIC_IS_PLATFORM=true is for the Platform dashboard and is not available in the self-hosted version. However, I really need to access and manage cloud functions via the dashboard for my local environment. Is there any way or workaround to enable this feature in the self-hosted version, or is it strictly limited to the hosted platform?

Platform Functionalities Support:
Given the limitations of the self-hosted version, such as single organization and project, and the absence of a management API/database for handling multiple projects, is there any plan to extend these features to the self-hosted version in the future? Alternatively, can you provide any guidance or resources on how to implement such customizations if we decide to pursue this on our own?

I am particularly interested in a solution that allows me to use the Supabase platform's full potential in a self-hosted setup, including multiple organizations, projects, and a fully functional dashboard for cloud functions.

Thank you for your assistance and support. I look forward to your guidance on these matters.

Best regards,

from supabase.

encima avatar encima commented on July 23, 2024

Hi @huiali

To address the questions in order:

  1. Modifying the PLATFORM variable is not supported and not recommended, yes, you would need to use the hosted version, I am afraid. Functions can be created and deployed using the CLI, as normal, however and you can view logs from each call.
  2. Currently, this is not possible and a single project, single org is the self-hosted version we offer. To my knowledge, there is no plan to modify this but I will raise it up internally for a more official response

from supabase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.