🚀 View live demo: gpt.shahzeb.co
Pocketbase is used to store the prompts. Keep the VITE_PROMPT_ENDPOINT
env var as an empty string if you do not want to use this feature.
Copy over the code from pocket-base/main.pb.ts
onto your pocketbase server. Instructions on extending pocket base via pb-hooks. Don't forget to restart the pb service.
Copy over the code in the cloudflare/
to your Cloudflare function.
- Run
mv .env.example .env
to create a new .env file - Update the values with your cloudflare function and pocket base URL
Then you know the drill, yarn i
, yarn dev
.