Data Fetched in client component only shows in local env but not fetching in production env.
Unanswered
Saltwater Crocodile posted this in #help-forum
Saltwater CrocodileOP
Hi Guys, I have a nextjs blog app that fetches and manipulates data from WordPress in a client component, however, when i deployed the app on AWS amplify, the data was not fetched. What am I doing wrong?
5 Replies
@Saltwater Crocodile Hi Guys, I have a nextjs blog app that fetches and manipulates data from WordPress in a client component, however, when i deployed the app on AWS amplify, the data was not fetched. What am I doing wrong?
Georgian Shepherd
without any code sample or enough context we can't help you
Scale parasitoid
@Saltwater Crocodile did you add the .env variable on AWS?
Spectacled bear
can you try it on local build? Create a build and try it on local and see if it works
Saltwater CrocodileOP
Hi guys , sorry for the late response, the problem was solved by adding .env to AWS
Thank you all for the responses