[PR #4139] [CLOSED] feat: optimize vercel build on avoiding depends #5214

Closed
opened 2026-03-13 12:14:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4139
Author: @Kinfe123
Created: 8/21/2025
Status: Closed

Base: canaryHead: feat/vercel-github-configs


📝 Commits (10+)

📊 Changes

7 files changed (+72 additions, -7 deletions)

View changed files

📝 .npmrc (+2 -1)
📝 demo/nextjs/components/sign-in-btn.tsx (+1 -0)
📝 demo/nextjs/package.json (+9 -2)
📝 docs/app/docs/[[...slug]]/page.tsx (+2 -0)
📝 docs/package.json (+7 -0)
📝 pnpm-lock.yaml (+47 -4)
vercel.json (+4 -0)

📄 Description

Summary by cubic

Optimize Vercel builds by scoping Turbo to demo and docs, and skipping unnecessary monorepo builds. Also pin demo to published betas and make docs routes dynamic for reliable deploys.

  • Refactors

    • Add vercel.json to build only @better-auth/demo and @better-auth/docs.
    • Set build.dependsOn: [] in demo/docs and disable workspace linking in .npmrc.
    • Force dynamic rendering for docs pages.
    • Silence a type check in the demo sign-in button to unblock builds.
  • Dependencies

    • Pin better-auth and @better-auth/stripe in the demo to 1.3.8-beta.2 and update the lockfile.

🔄 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/4139 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 8/21/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat/vercel-github-configs` --- ### 📝 Commits (10+) - [`b5da8af`](https://github.com/better-auth/better-auth/commit/b5da8af6e5812e60e24214ea63ced79d3c7a6de3) feat: vercel config for github ci auto cancelation - [`d23bfb6`](https://github.com/better-auth/better-auth/commit/d23bfb6c431cfe941c4f795e6831df4fff419168) lint - [`e161283`](https://github.com/better-auth/better-auth/commit/e161283e46d937f09eceae95720c67c37e0df949) avoid unncessary build - [`af3c161`](https://github.com/better-auth/better-auth/commit/af3c161f650c49c31aec93c35df28af781233b2b) lint - [`93a5851`](https://github.com/better-auth/better-auth/commit/93a58513ceae20b06ced1b5c7d2b47f5d88ddff1) update - [`19e9ca3`](https://github.com/better-auth/better-auth/commit/19e9ca343e7117456dab085a4aa6c2297ed84a6f) update - [`227f609`](https://github.com/better-auth/better-auth/commit/227f609e59259ecf7fcd6ce81ccf16a2e93ba03a) update - [`0ea8376`](https://github.com/better-auth/better-auth/commit/0ea83764afcac1630900c314891f974daa0ddaea) update - [`d5b119c`](https://github.com/better-auth/better-auth/commit/d5b119cab9f1c8278719000807facd7f2569235d) lock file - [`a973c8c`](https://github.com/better-auth/better-auth/commit/a973c8c2b2aa849f61cacf0049f1a3618ee867f5) update ### 📊 Changes **7 files changed** (+72 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `.npmrc` (+2 -1) 📝 `demo/nextjs/components/sign-in-btn.tsx` (+1 -0) 📝 `demo/nextjs/package.json` (+9 -2) 📝 `docs/app/docs/[[...slug]]/page.tsx` (+2 -0) 📝 `docs/package.json` (+7 -0) 📝 `pnpm-lock.yaml` (+47 -4) ➕ `vercel.json` (+4 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Optimize Vercel builds by scoping Turbo to demo and docs, and skipping unnecessary monorepo builds. Also pin demo to published betas and make docs routes dynamic for reliable deploys. - **Refactors** - Add vercel.json to build only @better-auth/demo and @better-auth/docs. - Set build.dependsOn: [] in demo/docs and disable workspace linking in .npmrc. - Force dynamic rendering for docs pages. - Silence a type check in the demo sign-in button to unblock builds. - **Dependencies** - Pin better-auth and @better-auth/stripe in the demo to 1.3.8-beta.2 and update the lockfile. <!-- 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-03-13 12:14:24 -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#5214