route.ts file is bundled instead of simply executed
Unanswered
Tonkinese posted this in #help-forum
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.