#500 error on server-side not redirecting
5 messages · Page 1 of 1 (latest)
This is what I see in my console
In my getServerSideProps
export const getServerSideProps: GetServerSideProps = async () => {
const response: any = await api.post(endpoints.getTermsAndConditions, {});
const privacy = await markdownToHtml(response.data.privacy);
return {
props: {
privacy,
},
};
};
(the response is deliberately broken to force a 500 error)
Have you by any chance configured the pageExtensions property in next.config.js?