Clone of
@adrianhajdin
's project.
pnpm dlx wrangler d1 create promptopia
touch wrangler.toml
then https://developers.cloudflare.com/d1/get-started/#3-bind-your-worker-to-your-d1-databasepnpm dlx wrangler d1 execute promptopia --local --file=./schema.sql
pnpm dlx wrangler deploy
pnpm create cloudflare@latest
turso auth signup
- Turso platform API token
turso auth token
- Readme
- https://lucia-auth.com/guidebook/github-oauth/nextjs-app
- https://lucia-auth.com/database-adapters/cloudflare-d1
- https://blog.cloudflare.com/introducing-d1
- https://nextjs.org/docs/app/building-your-application/caching#react-cache-function
- https://youtu.be/wm5gMKuwSYk?t=3403
- https://github.com/tlebeitsuk/nuxt-cloudflare-lucia/blob/main/server/utils/auth.ts