Nextjs hono.js router not working after upgrade to 1.0.2 #270

Closed
opened 2026-03-13 07:40:18 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @qasimali09 on GitHub (Nov 24, 2024).

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). ``` 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; ```
Author
Owner

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

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

@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#270