File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import type { Route } from "./+types/doc";
1414
1515export { ErrorBoundary } from "~/components/doc-error-boundary" ;
1616
17- export let loader = async ( { request, params } : Route . LoaderArgs ) => {
17+ export async function loader ( { request, params } : Route . LoaderArgs ) {
1818 let url = new URL ( request . url ) ;
1919 let splat = params [ "*" ] ?? "" ;
2020
@@ -30,7 +30,6 @@ export let loader = async ({ request, params }: Route.LoaderArgs) => {
3030 if ( ! doc ) {
3131 throw new Response ( "Not Found" , { status : 404 } ) ;
3232 }
33-
3433 return {
3534 doc,
3635 githubPath : githubPath ,
@@ -40,7 +39,7 @@ export let loader = async ({ request, params }: Route.LoaderArgs) => {
4039 } catch ( _ ) {
4140 throw new Response ( "Not Found" , { status : 404 } ) ;
4241 }
43- } ;
42+ }
4443
4544export function headers ( { parentHeaders } : HeadersArgs ) {
4645 parentHeaders . set ( "Cache-Control" , CACHE_CONTROL . doc ) ;
You can’t perform that action at this time.
0 commit comments