Error 500 in Server Funtions with Sveltekit demo app

I am trying to get the Sveltekit demo app up and running. It works perfectly when I build on localhost but when I deploy to Netlify I get an error 500 in the serrverside API call on the ToDos page.

Cannot figure out for the life of me what’s going wrong any help would be much appreciate!

I am using the Netlify adapter.

I followed the official netlify guide for deploying it found here:

Hey @mykasoda,

The site appears to be deleted or renamed. Do you have some other site name?