HowTo: Self-host without Firebase / Share feature
Shackless opened this issue ยท 2 comments
The share feature in SlickGPT requires a database because we somehow have to pass the Chat
object from client A to client B.
The project is currently set up to use a Firebase Realtime database as easy "JSON dump storage".
Create a branch and some documentation where the Share feature can easily be disabled and all Firebase dependencies (mostly the env vars) are removed from SlickGPT so that devs can run their own instance quicker and with less hassle in case they don't need to share chats.
Also document more clearly which code devs would have to edit to use another database provider than Firebase (which is basically just the share endpoint)
If you have experienced a build error in Vercel due to missing environment variables, I recommend following the steps below to resolve this issue.
- Locate the .env.example file in the base directory.
- Copy this file.
- Fill the copied file with dummy data, replacing any missing environment variables.
- Save the copied file as .env in the base directory.
- Try to build with Vercel again.
By following these steps, I was able to successfully build with Vercel even with missing environment variables causing an error.