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.
19 lines
469 B
TypeScript
19 lines
469 B
TypeScript
import type { PageProps } from "@fresh/core";
|
|
import Header from "../../components/Header.tsx";
|
|
|
|
export default function Layout({ Component }: PageProps) {
|
|
return (
|
|
<>
|
|
<Header active="" title="" />
|
|
|
|
<div class="w-full max-w-screen-xl px-4">
|
|
<Component />
|
|
<p class="mt-16">
|
|
This route is used only for demo purposes;{" "}
|
|
<a href="/" class="underline">see the home page</a>.
|
|
</p>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|