How to build a nextron project without disabling the API routes?

I have a problem with my project. I want to make a desktop app with nextron but when I build it the API routes are closed and it doesn’t even export the js file that makes the request to the API.
Here are the emplacements of the project:
enter image description here
And I also tried to change the next.config.js to try preventing it from blocking the API routes
enter image description here

Can anyone help me?

On some forums I saw that it was imposible but isn’t there a little trick to make it work?