Open gebeer opened 1 year ago
@gebeer Thanks for this issue, and you are completely right. I've been working hard to separate the UI from the actual backend and I'm done with the back-end part but not the UI itself. I'm hoping to update the documentation and functionality as soon as possible.
I think some confusion is caused by setting up supabase with prisma. You need to connect supabase (I did by setting up connection pooling and direct url, see https://www.prisma.io/docs/guides/database/supabase, don't forget to append ?pgbouncer=true to DATABASE_URL ) and run 'yarn prisma migrate dev' from the command line with prisma CLI.
next setup github oauth with callback_url = http://localhost:3000 (=NEXTAUTH_URL) and add a random hash for NEXTAUTH_SECRET.
Now your database schema is in Supabase and github should redirect to localhost. Good luck!
Is your proposal related to a problem?
Having difficulties setting this up
I installed and started https://github.com/homanp/langchain-ui-api and have a running Supabase instance following https://supabase.com/docs/guides/self-hosting/docker Then I started langchain-ui but am getting a Type Error: invalid URL related to /langchain-ui/node_modules/next-auth/utils/parse-url.js (17:16)
I guess I need to supply the nextauth related credentials inside .env. But this is where I'm starting to get lost.
What also boggles me: By default the Supabase instance runs on localhost:8000. I guess this causes a conflict with uvicorn also using localhost:8000? Again it would be nice if this was better documented.
Describe the solution you'd like
This project might be targeted at the more experienced users. But it would be great if the documentation could expand a bit more on setting things up, especially Nextauth, Metal API and all the other stuff that seems to be required in .env (apart from OPEN_API_KEY which should be quite obvious) That would be much appreciated.