chore: release 1.6.0 (#2113)

This commit is contained in:
Marvin Hagemeister
2023-12-01 16:20:40 +01:00
committed by GitHub
parent bd372b9535
commit dace008611
12 changed files with 111 additions and 635 deletions
+13
View File
@@ -54,6 +54,19 @@ export default function BlogpostPage({ data }) {
}
```
This can also be achieved by throwing an error, if you're uninterested in
passing specific data to your 404 page:
```tsx
import { Handlers } from "$fresh/server.ts";
export const handler: Handlers = {
GET(_req, _ctx) {
throw new Deno.errors.NotFound();
},
};
```
### 500: Internal Server Error
The 500 page can be customized by creating a `_500.tsx` file in the `routes/`