Skip to content

fix: apply audit quick wins (Next 16.3.5, dead deps, login catch-all, CI gates) - #38

Merged
Kameleon21 merged 2 commits into
Masterfrom
fix/audit-quick-wins
Sep 13, 2026
Merged

Kameleon21 merged 2 commits into
Masterfrom
fix/audit-quick-wins

Conversation

@Kameleon21

@Kameleon21 Kameleon21 commented Sep 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

Applies the "Today" items from the 2026-09-12 repo audit.

  • Upgrade next 16.1.6 → 16.3.5 (30 open Dependabot alerts, 2 critical unauth RCE)
  • Remove unused @auth/core, @convex-dev/auth, swr and dead src/app/providers.tsx
  • Move login page to auth/login/[[...rest]] so Clerk path routing (factor-one, sso-callback, reset-password) no longer 404s
  • Run bun run test:ci in deploy.yml before deploying to prod
  • Raise jest coverage thresholds from 10% to 33/36/28/33 (actual is ~35%)
  • Gitignore prod-snapshot.zip and always remove it in sync:prod-to-dev
  • Pin Bun 1.4.2 in CI and packageManager (was 1.1.30 / 1.3.6 mismatch)
  • Run next build under Node instead of the Bun runtime (dropped --bun from build and analyze)

Why the build script changed

Next 16.3.x does not build under the Bun runtime on the Bun versions in play:

next build under Node is the supported path. Bun remains the package manager and script runner; dev and start are unchanged.

Verification

  • bun run lint clean
  • bunx tsc --noEmit clean
  • bun run test:ci 93/93 passing, coverage above new thresholds
  • bun run build green locally under Node 26

… CI gates)

- Upgrade next 16.1.6 -> 16.3.5 (30 open Dependabot alerts, 2 critical RCE)
- Remove unused @auth/core, @convex-dev/auth, swr and dead src/app/providers.tsx
- Move login page to auth/login/[[...rest]] so Clerk path routing
  (factor-one, sso-callback, reset-password) no longer 404s
- Run test:ci in deploy.yml before deploying to prod
- Raise jest coverage thresholds from 10% to 33/36/28/33
- Gitignore prod-snapshot.zip and always remove it in sync:prod-to-dev
- Pin Bun 1.4.2 in CI and packageManager: Bun < 1.3.14 crashes on
  Next 16.3 builds (oven-sh/bun#25609)
@vercel

vercel Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
firstdevjob Ready Ready Preview Sep 13, 2026 8:04am UTC

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@github-actions

Copy link
Copy Markdown

✅ Quality Gate Results

Check Status
Code Quality ✅
Type Safety ✅
Build Check ✅
Bundle Analysis ✅

All checks passed!

🚀 This PR is ready for review!

@github-actions

Copy link
Copy Markdown

🚀 Tests passed! Preview deployment will be available shortly.

Vercel builds with Bun 1.3.14, which crashes (SIGILL) during page data
collection on Next 16.3.x when next runs under the Bun runtime via
`bun --bun`. Bun 1.3.x also fails locally with a CommonJS wrapper error.
Dropping the --bun flag from the build scripts runs `next build` under
Node, which Next supports, while Bun stays the package manager and
script runner.
@github-actions

Copy link
Copy Markdown

✅ Quality Gate Results

Check Status
Code Quality ✅
Type Safety ✅
Build Check ✅
Bundle Analysis ✅

All checks passed!

🚀 This PR is ready for review!

@github-actions

Copy link
Copy Markdown

🚀 Tests passed! Preview deployment will be available shortly.

@Kameleon21
Kameleon21 merged commit c20cf5a into Master Sep 13, 2026
13 checks passed
@Kameleon21
Kameleon21 deleted the fix/audit-quick-wins branch September 13, 2026 08:07

This branch was successfully deployed

1 active deployment
Preview — c0b05c8c Deployed Sep 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant