My Netlify page is throwing an “Internal Server Error” when I try to access the website.
Hi Team
Components:
- Sitecore XM Cloud
- Sitecore SXA website
- Sitecore Experience Edge
- Headless JSS, Nextjs framework
Steps to reproduce:
- Created SXA website using Sitecore XM Cloud portal (default basic website)
- Created Experience Edge API
- Noted down environment variable: JSS_APP_NAME, SITECORE_API_KEY, GRAPH_QL_ENDPOINT (https://edge.sitecorecloud.io/api/graphql/v1)
- Created a new site in Netlify using DevOps Project (ADO project is created by Sitecore XM Cloud in my private repository)
- Setup environment variable mentioned above.
- Configured Publish folder to src/sxastarter/.next
- Configured Runtime environment to Nextjs
- Deployed successfully
- next js version that I am using “next”: “^13.4.16”
- Node Js version: “nodeVersion”: “20.10.0”,
website link: https://main--nxa-xmc-site.netlify.app/
Problem:
After browsing the website(have only 2 initial pages: home and home/about) I see Internal server error. Checking the logs I saw the Sitecore pages are redirected to “/.netlify/builders/___netlify-odb-handler” and I am not sure what is causing 500 issue.
Please let me know what I am missing here or if more information is required regarding error. I won’t be able to give repository details.