saltyshiomix / nuxtron

⚡ Nuxt.js + Electron ⚡

Home Page:https://npm.im/nuxtron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to communicate with Express API after building to PROD

iamnomana opened this issue · comments

I'm building a nuxtjs project which requires Express JS as server-side. I'm using the serverMiddleware property to connect to the index.js.
This method works well in dev mood. I'm able to communicate with the API's. But after building (bundling) the project, it changes the url to "app://./" instead of "localhost:{port}/". And this prevents the API from working.