Skip to the content

Capsid menu

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

The functions of indexnow-key.ts
FunctionLinesComplexityCoveredCRAPMutation
loader7 to 91No data: no coverage report in this mapNo data: no coverage report in this mapNo 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 });
}