diff --git a/docs/server-timing.md b/docs/server-timing.md index 248f7690..4d66c3c7 100644 --- a/docs/server-timing.md +++ b/docs/server-timing.md @@ -74,6 +74,8 @@ export async function loader({ params }: LoaderFunctionArgs) { ) } +// We have a general headers handler to save you from boilerplating. +// export const headers: HeadersFunction = pipeHeaders export const headers: HeadersFunction = ({ loaderHeaders, parentHeaders }) => { return { 'Server-Timing': combineServerTimings(parentHeaders, loaderHeaders), // <-- 4. Send headers