Custom Page for 404 Not Found
Based on the pull request here, I attempted to run the following code:
After running the solara:
If I visit the http://localhost:8765/invalid, it still shows "Page not found by Solara router" instead of "My custom 404". How to fix this code to make it work?
1 Reply
maartenbreddels
<:pull_merged:882464249119645787> [widgetti/solara] fix: if we hit a 404 in starlette, raise instead of render a 404
This allows middleware or error handlers to catch the 404 and do something custom.
Example:
Created