3 Commits

Author SHA1 Message Date
Avery Felts
bf9da84553 fix: Replace Prisma with native D1 and fix timezone issues
- Created native D1 database layer (src/lib/d1.ts) to bypass Prisma fs.readdir issues
- Updated all API routes to use direct D1 queries
- Added date-utils.ts with local date helpers to fix UTC timezone mismatch
- Calendar now correctly colors today's usage
- Data persists correctly across page refreshes
2026-01-25 18:10:04 -07:00
Avery Felts
14c45eeb24 feat: Add D1 database integration with proper Cloudflare Workers support
- Update prisma.ts to use getPrismaWithD1() with getCloudflareContext()
- Update all API routes to use async D1 connection
- Add open-next.config.ts for Cloudflare Workers deployment
- Add wrangler.jsonc with D1 binding and custom domain routes
- Fix TypeScript type errors in API routes and storage
- Add @workos-inc/authkit-nextjs dependency
- Remove incompatible prisma.config.ts
2026-01-25 17:21:36 -07:00
Avery Felts
76a4b617b1 Initial commit from Create Next App 2026-01-23 21:13:15 -07:00