Next.js Discord

Discord Forum

route.ts file is bundled instead of simply executed

Unanswered
Tonkinese posted this in #help-forum
Open in Discord
TonkineseOP
I have the problem that my route.ts file is bundled instead of simply executed. When I implement that api route in pages router it executes immediately whereas the app api is compiled 7 seconds first. Whenever I run next build it also puts everything inside the router.ts file blowing up the file size a lot.

0 Replies