Next.js Discord

Discord Forum

production build problem, no errors shown

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Avatar
Asian black bearOP
hey , I have a problem, I don't know if it sounds absurd.
I am currently working on a next.js app and it's a simple customer adding deleting and editing on the given customer data kind of app, so the problem is that I build every thing and it's working in the dev server and when checked the production build the editing , deleting and adding function are not working but the customer's current list from the db is fetched perfectly.
btw I am using dynamodb.
does anyone know how to debug this, I am not getting any errors till now and only some warnings about ReferenceError: location is not defined while building
can anybody help me.🙂

1 Reply

Avatar
sounds like you are using location api but its trying to be prerendered on server: https://nextjs-faq.com/browser-api-client-component