Skip to content

Fix Authentication API Routes to Resolve 404 Errors - #9005

Open
vikasverma101 wants to merge 1 commit into
JhaSourav07:mainfrom
vikasverma101:fix/auth-route-404
Open

Fix Authentication API Routes to Resolve 404 Errors#9005
vikasverma101 wants to merge 1 commit into
JhaSourav07:mainfrom
vikasverma101:fix/auth-route-404

Conversation

@vikasverma101

Copy link
Copy Markdown
Contributor

Description

Fixes #8995

Fixed the production Sign In and Sign Up API 404 issue in CommitPulse.

The frontend was calling:

  • /api/auth/login
  • /api/auth/signup

while the API route directory used an uppercase Auth, causing the routes to fail in the case-sensitive production environment.

This PR aligns the authentication API route paths with the lowercase /api/auth/... endpoints expected by the frontend and adds regression coverage for the affected routes.

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕐 Pillar 3 — Timezone Logic Optimization
  • 🛠️ Other (Bug fix, refactoring, docs)

Visual Preview

Not applicable — this is an API routing/authentication bug fix with no visual or SVG changes.

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested the authentication changes locally.
  • I have run npm run format and npm run lint locally and resolved all errors (CI will fail otherwise).
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have updated README.md if I added a new theme or URL parameter.
  • I have started the repo.
  • I have made sure that i have only one commit to merge in this PR.
  • The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts).
  • (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.

@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

@vikasverma101 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@retenta-bot

retenta-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

This pull request addresses a critical issue with the authentication API routes that were causing 404 errors in production. It aligns the route paths with the expected lowercase format, ensuring proper functionality. This change is important for maintaining a secure and reliable authentication process. Additionally, it adds regression coverage for the affected routes, which is a great practice. Please note that similar past decisions have focused on improving API error handling to prevent sensitive information leakage, which highlights the importance of robust API design. Thank you for your contribution, and I look forward to your updates!

@retenta-bot retenta-bot Bot changed the title fix(auth): resolve production auth route 404 Fix Authentication API Routes to Resolve 404 Errors Aug 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

Asset PR Size Base Size Difference Status
static/chunks/app/api/Auth/Nextauthgithub/route-[hash].js - 0.28 KB -0.28 KB (-100.00%) 🗑️ Deleted
static/chunks/app/api/Auth/login/route-[hash].js - 0.28 KB -0.28 KB (-100.00%) 🗑️ Deleted
static/chunks/app/api/Auth/signup/route-[hash].js - 0.28 KB -0.28 KB (-100.00%) 🗑️ Deleted
static/chunks/app/api/auth/Nextauthgithub/route-[hash].js 0.28 KB - +0.28 KB (++100%) 🆕 New
static/chunks/app/api/auth/login/route-[hash].js 0.28 KB - +0.28 KB (++100%) 🆕 New
static/chunks/app/api/auth/signup/route-[hash].js 0.28 KB - +0.28 KB (++100%) 🆕 New

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 4998.89 KB 4998.89 KB 0 B
Total CSS 354.18 KB 354.18 KB 0 B

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.

bug: Sign In & Sign Up API Returning 404 on Production

1 participant