[PR #7274] [MERGED] docs(database, hono): add programmatic migration guide for Cloudflare Workers and runtime environment variable handling #24091

Closed
opened 2026-04-15 22:10:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7274
Author: @Bekacru
Created: 1/11/2026
Status: Merged
Merged: 1/12/2026
Merged by: @Bekacru

Base: canaryHead: docs/db


📝 Commits (3)

  • 5100567 docs(database, hono): add programmatic migration guide for Cloudflare Workers and runtime environment variable handling
  • 4455ed2 Update docs/content/docs/integrations/hono.mdx
  • d0f6f85 Update docs/content/docs/concepts/database.mdx

📊 Changes

2 files changed (+282 additions, -0 deletions)

View changed files

📝 docs/content/docs/concepts/database.mdx (+148 -0)
📝 docs/content/docs/integrations/hono.mdx (+134 -0)

📄 Description

Summary by cubic

Adds docs for programmatic database migrations and runtime env handling when deploying Better Auth on Cloudflare Workers with Hono. Covers D1/Kysely usage, plus options for Prisma/Drizzle to keep using the CLI.

  • New Features
    • Programmatic migrations guide using getMigrations, with examples and SQL output option.
    • Cloudflare Workers migration endpoint example (D1/Kysely), usage steps, and security notes.
    • Clear limits: programmatic migrations support built-in Kysely adapters only (not Prisma/Drizzle).
    • Prisma/Drizzle options: use cloudflare:workers env import, nodejs_compat_populate_process_env flag, or generate schema locally and push with your ORM.

Written for commit d0f6f85b6b. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7274 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 1/11/2026 **Status:** ✅ Merged **Merged:** 1/12/2026 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `docs/db` --- ### 📝 Commits (3) - [`5100567`](https://github.com/better-auth/better-auth/commit/51005676a8b4245d87a3b5f7970dcbd84fb1a980) docs(database, hono): add programmatic migration guide for Cloudflare Workers and runtime environment variable handling - [`4455ed2`](https://github.com/better-auth/better-auth/commit/4455ed2ce407ffea38de72f04a5cb996d1467d10) Update docs/content/docs/integrations/hono.mdx - [`d0f6f85`](https://github.com/better-auth/better-auth/commit/d0f6f85b6b669319868b0d8ac3a06526f98f00a0) Update docs/content/docs/concepts/database.mdx ### 📊 Changes **2 files changed** (+282 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/database.mdx` (+148 -0) 📝 `docs/content/docs/integrations/hono.mdx` (+134 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds docs for programmatic database migrations and runtime env handling when deploying Better Auth on Cloudflare Workers with Hono. Covers D1/Kysely usage, plus options for Prisma/Drizzle to keep using the CLI. - **New Features** - Programmatic migrations guide using getMigrations, with examples and SQL output option. - Cloudflare Workers migration endpoint example (D1/Kysely), usage steps, and security notes. - Clear limits: programmatic migrations support built-in Kysely adapters only (not Prisma/Drizzle). - Prisma/Drizzle options: use cloudflare:workers env import, nodejs_compat_populate_process_env flag, or generate schema locally and push with your ORM. <sup>Written for commit d0f6f85b6b669319868b0d8ac3a06526f98f00a0. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:10:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#24091