app/routes/indexnow-key.ts
7 lines and 1 functions in DrDustinEdwards/dustinedwards-info, at commit 399629e on 2026-10-25. This file on GitHub.
Functions
| Function | Lines | Complexity | Covered | CRAP | Mutation |
|---|---|---|---|---|---|
| loader | 7 to 9 | 1 | No data: no coverage report in this map | No data: no coverage report in this map | No data: no mutants in this code |
Imports
It imports app/lib/indexnow.mjs, app/lib/seo.ts. No module of this repo imports it.
Source
// /<key>.txt, the IndexNow key file: Prelum's keyFileResponse, the key as the whole body.
import { keyFileResponse } from "@drdustinedwards/site-helpers/indexnow";
import { INDEXNOW_KEY } from "~/lib/indexnow.mjs";
import { HOURLY_CACHE_CONTROL } from "~/lib/seo";
export function loader() {
return keyFileResponse(INDEXNOW_KEY, { "cache-control": HOURLY_CACHE_CONTROL });
}