I deployed my Next.js (14) application successfully, but when I navigate to the website from another site, I encounter a 500 | Internal Server Error.
Additionally, in the browser console, I see the following message:
I’ve checked the server logs, and there’s no specific error related to the deployment process. The application works fine when accessing it directly (e.g., typing the URL), but when coming from other websites, the error occurs. And If I reload the page then it work fine.
File Structure:
Questions:
- What could be causing this 500 | Internal Server Error when
navigating from another website? - Could the browsecSiteContentScript: data is not for auth message be related to
a browser extension, or is it something in my Next.js configuration?
Any help would be appreciated. Thanks!