Chat persistence does not work
raivatshah opened this issue · 4 comments
Bug report
I just setup the basic repo, but I realised that the chat history isn't being saved. Upon checking, I realise that the 'chats' table doesn't exist in the supabase db. What could go wrong?
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Setup repo as per instructions
- Type in a chat
- Check history and DB
I think this might have to do with the auth for the repo out of the box. After I clicked deploy with vercel, for all my sign in requests, I get { "message": "No API key found in request", "hint": "No
apikey request header or url param was found." }
Nvm, turns out that the auth link in supabase settings needs to have https://
. See this stackoverflow discussion.
But the chat issue still persists
I was able to fix the chat history persistence by migrating to SSR from auth helpers.
Once I wrap up my project, I'll post a PR for this.