Hi
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 GitHub project (GitHub 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
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.
I have tried same on Vercel and site is rendering without any 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.
Thanks