why does nextjs run my route handler code during build time?
Unanswered
American black bear posted this in #help-forum
American black bearOP
during the "Collecting page data" step during built it appears my route handler files are being run and importing files that try to use env vars that dont exist during build time in ci/di - the file is marked with 'force-dynamic' but that doesnt seem to prevent this behavior.. the only thing ive found that works is to use
next experimental-compile to build which seems to treat every page dynamically