fix: error handling in fs routes (#2474)

Ran into an issue where we weren't responding with the correct status
code and passed response headers. This was a bit of a rabbit hole and it
was caused by us wrapping to more error handling middlewares than
necessary.
This commit is contained in:
Marvin Hagemeister
2024-05-31 14:27:36 +02:00
committed by GitHub
parent 8d85945da6
commit 88c3671a09
13 changed files with 151 additions and 21 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import type { PageProps } from "@fresh/core";
import Header from "../../components/Header.tsx";
export default function Layout({ Component, state }: PageProps) {
export default function Layout({ Component }: PageProps) {
return (
<>
<Header active="" title="" />