[GH-ISSUE #643] Nextjs hono.js router not working after upgrade to 1.0.2 #8354

Closed
opened 2026-04-13 03:25:29 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @qasimali09 on GitHub (Nov 24, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/643

import { Hono } from 'hono';
import { auth } from '@/lib/auth';

const authRouter = new Hono().on(['POST', 'GET'], '/**', (c) => {
  return auth.handler(c.req.raw);
});

export default authRouter;
Originally created by @qasimali09 on GitHub (Nov 24, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/643 ``` import { Hono } from 'hono'; import { auth } from '@/lib/auth'; const authRouter = new Hono().on(['POST', 'GET'], '/**', (c) => { return auth.handler(c.req.raw); }); export default authRouter; ```
GiteaMirror added the locked label 2026-04-13 03:25:29 -05:00
Author
Owner

@qasimali09 commented on GitHub (Nov 24, 2024):

Replace the /** with /* and it will be works fine.
Please update documentation.

<!-- gh-comment-id:2495886108 --> @qasimali09 commented on GitHub (Nov 24, 2024): Replace the `/**` with `/*` and it will be works fine. Please update documentation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8354