ixartz / Next-js-Boilerplate

🚀🎉📚 Boilerplate and Starter for Next.js 14+ with App Router and Page Router support, Tailwind CSS 3.4 and TypeScript ⚡️ Made with developer experience first: Next.js + TypeScript + ESLint + Prettier + Drizzle ORM + Husky + Lint-Staged + Vitest + Testing Library + Playwright + Storybook + Commitlint + VSCode + Netlify + PostCSS + Tailwind CSS ✨
https://nextjs-boilerplate.com
MIT License
8.79k stars 1.69k forks source link

fix: api routes not found after apply intl middleware #210

Closed sunxyw closed 9 months ago

sunxyw commented 9 months ago

Move API Routes into [locale]

fix #209

sunxyw commented 9 months ago

I simply moved the API routes to [locale] and removed /api/guestbook from ignoredRoutes in middleware.ts.

I'm not sure if I should add a new Route Handler to demonstrate the use of i18n.

ixartz commented 9 months ago

The PR looks good to me, thank you so much for creating the issue and for your help. I'll merge it when I go back to my computer.

For now, no need to add a new Route Handler to demonstrate the use of i18n.

ixartz commented 9 months ago

@sunxyw Thank you so much for reporting and solving the issue.

github-actions[bot] commented 9 months ago

:tada: This PR is included in version 3.30.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: