We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When routes are generated only 'page' routes like page.tsx are generated instead of route routes like route.ts
page.tsx
route
route.ts
next-routes/src/utils.ts
Lines 91 to 94 in bd2a9e0
This should be updated like below
return ( VALID_PAGE_EXTENTIONS.includes('.' + ext!) && ( name!.split('.').shift() === 'page' || name!.split('.').shift() === 'route') );
In the cleanPath function we also need to add .replace(/\/route$/, '')
.replace(/\/route$/, '')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When routes are generated only 'page' routes like
page.tsx
are generated instead ofroute
routes likeroute.ts
next-routes/src/utils.ts
Lines 91 to 94 in bd2a9e0
This should be updated like below
In the cleanPath function we also need to add
.replace(/\/route$/, '')
The text was updated successfully, but these errors were encountered: