Unable to build production app in next 13
Unanswered
akki1234 posted this in #help-forum
akki1234OP
I am building an app in next 13. When building the app locally it is working fine
I have a global function
But while next JS picks this up in the dev build, in the production build it is telling __ is not defined. Can someone please help me resolving this issue.
yarn dev but as soon as I trigger a production build, pre-rendering starts failing. I have a global function
__ that we use in our application. I have in my code added a code like below global.__ = a => a;But while next JS picks this up in the dev build, in the production build it is telling __ is not defined. Can someone please help me resolving this issue.