Javascript – How to pass Next.js backend data to the frontend?
I'm working with Next.js and ahave a very simple code where a frontend component is calling a backend endpoint. The backend retrieves the data correctly, but the frontend only receives an empty object every time. The is the backend API…