Astro SSR deployed on Neflify

Hi, I have deployed a site to netlify Site Name = It uses Astro SSR adapter and have been trying to run it in Hybrid mode. I added

export const prerender = false;

To the pages that need to be ran on the server but I’m getting the below error.

This function has crashed

An unhandled error in the function code triggered the following message:

TypeError - Cannot convert undefined or null to object

 at Function.assign (<anonymous>)
    at Object.<anonymous> (/var/task/.netlify/functions-internal/entry.js:42858:24)
    at Module._compile (node:internal/modules/cjs/loader:1196:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
    at Module.load (node:internal/modules/cjs/loader:1074:32)
    at Function.Module._load (node:internal/modules/cjs/loader:909:12)
    at Module.require (node:internal/modules/cjs/loader:1098:19)
    at require (node:internal/modules/cjs/helpers:108:18)
    at Object.<anonymous> (/var/task/entry.js:1:18)
    at Module._compile (node:internal/modules/cjs/loader:1196:14)

Can anybody help?

Please reach-out to Astro for support with this. This is not a Netlify issue as the function is generated by Astro. They need to ensure a function is correctly generated.