You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a preact app using "npx preact-cli create typescript XXX" and am trying to return a 404 status code for routes that don't match. I am not sure where to place the code provided above though...do I need to add a new file to the scaffolded app or is there an existing file that I should edit?
Right now I observe preact-router sends 200 status code when no routes match. React Router has a
status
prop that handles it (ref: https://stackoverflow.com/questions/36052604/how-to-let-react-router-respond-with-404-status-code).Is there a way to do this with preact-router?
The text was updated successfully, but these errors were encountered: