Static server functions do not work on Netlify
Has anyone tried using static server functions on Netlify? My web app will either crash immediately or throw a 404 when attempting to query the function.
Here's an example of what I have implemented:
Failure modes
^ that will cause the app to immediately crash on first load and throw this error:
ENOENT: no such file or directory, mkdir '/opt/build'
^ this will throw a network error like so:
Has anyone else run into a similar issue? Any help resolving this would be much appreciated ๐1 Reply
correct-apricotOPโข2mo ago
In case anyone else hits this you have to use static prerendering. In my case, I was using the default settings (SSR). https://github.com/TanStack/router/issues/4202
GitHub
Unable to resolve static server function json (main/devinxi) ยท Iss...
Which project does this relate to? Start v1.121.4 Describe the bug The application is unable to resolve the json file from a static server function at runtime. I've reproduced the issue in star...