Greetings!
Migrated an existing nextjs application to nextron, but api routes don't work on production.
Requesting them returns the html of the main page.
Dev works fine.
There is a warning in the console:
warn - Statically exporting a Next.js application via `next export` disables API routes.
This command is meant for static-only hosts, and is not necessary to make your application static.
Pages in your application without server-side data dependencies will be automatically statically exported by `next build`, including pages powered by `getStaticProps`.
Learn more: https://nextjs.org/docs/messages/api-routes-static-export
Greetings! Migrated an existing nextjs application to nextron, but api routes don't work on production. Requesting them returns the html of the main page.
Dev works fine.
There is a warning in the console:
How can I get them to work?