sveltejs / api.svelte.dev

The API worker source for https://api.svelte.dev
14 stars 4 forks source link

Implement 404 handling #23

Closed benmccann closed 2 years ago

benmccann commented 2 years ago

There's no 404 handling for the docs: https://github.com/sveltejs/api.svelte.dev/blob/master/src/routes/docs.ts

This line returns a 200: https://github.com/sveltejs/sites/blob/1c83a81d3957812a2986c6c50667d3cfca790980/sites/svelte.dev/src/routes/blog/%5Bslug%5D.svelte#L5

And so https://svelte.dev/blog/foobar returns a 500 rather than a 404