Follow these steps to take SideQuest from your local machine to the public web.
We use Render because it handles Python backends perfectly and provides persistent storage for your documents.
- Create a Account: Sign up at Render.com.
- Blueprint Deploy:
- Click New + -> Blueprint.
- Connect your GitHub repository.
- Render will automatically detect the
render.yamlfile and create the "sidequest-backend" service.
- Configure Environment Variables:
- Go to your new service -> Environment.
- Add
GEMINI_API_KEY(Your Google AI key). - Add
FRONTEND_URL(Set this tohttps://sidequestbot.vercel.app).
- Wait for Build: Render will build the app and mount the persistent disk. Once live, you will get a URL like
https://sidequest-backend.onrender.com.
Now we need to tell your Vercel app to talk to the new Render backend.
- Open Vercel Dashboard: Go to your
sidequestbotproject. - Settings -> Environment Variables:
- Update
NEXT_PUBLIC_BACKEND_URLto your new Render URL (e.g.,https://sidequest-backend.onrender.com). - Add
AUTH_URLset tohttps://sidequestbot.vercel.app. - Add
AUTH_SECRET(A long random string).
- Update
- Redeploy: Go to the Deployments tab -> Redeploy the latest commit.
- Visit
https://sidequestbot.vercel.app. - Log in using your test credentials (
test@example.com/password123). - Upload a document and verify the chat works.
- Persistent Test: Delete the deployment on Vercel/Render and redeploy. Your documents should still be there because of the Render Disk!
- Cold Starts: Render's free tier spins down after inactivity. The first request might take 30 seconds to wake up.
- Persistence: The
render.yamlmounts a disk at/data. Do not remove this, or your database will be wiped on every restart.