fermyon / leptos-spin

Integration library for running server-side Leptos apps on Spin
32 stars 6 forks source link

Improve static route error message #9

Closed itowlson closed 10 months ago

itowlson commented 10 months ago

After talking to Ben from Leptos and looking over the docs, static routes are not useful in Spin (they're relevant only for stateful environments that can cache pages). They're currently new in Leptos with limited adoption; if they become popular we can revisit how to handle them.

This PR therefore improves the error message, and logs it with a 500 response instead of panicking.