IAPL rename, scripted: preferred names in src, bin, scripts, services, tests; bin files and skill folders moved
Replaced by an explicit list of forms only (ten exported names, runtime env names, project file names and marks, commands, skill names, the log prefix, the brand in prose). Package name, import paths, routes, CSS tokens, data attributes, custom keys, context flags, the cookie and kv keys are not touched. package.json keeps the five old bin names beside the five new ones. The old names stop working in this commit and come back as aliases in the next; docs follow. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
414a4702df
commit
0a4f001797
@@ -12,7 +12,7 @@ import { isSiteNoindex } from './siteNoindex.js'
|
||||
* Search and Copilot, so new content reaches AI answers in minutes instead of
|
||||
* waiting for a crawl. Google doesn't use IndexNow (it reads the sitemap).
|
||||
*
|
||||
* Opt-in: `ipalKit({ indexNow: true })` adds the hook to the pages and content
|
||||
* Opt-in: `iapl({ indexNow: true })` adds the hook to the pages and content
|
||||
* collections; or add `buildIndexNowHook(…)` yourself. Needs the key file route
|
||||
* (createIndexNowKeyRoute) and a key: Site Integrations → IndexNow (generated on
|
||||
* the first save) or the INDEXNOW_KEY env var. Sends only from production with
|
||||
@@ -82,7 +82,7 @@ export function createIndexNowKeyRoute({ getCachedPayload }: { getCachedPayload:
|
||||
|
||||
/**
|
||||
* True when submissions may leave this machine: production + a public https
|
||||
* origin, and not a staging copy (IPAL_NOINDEX) — a staging build runs with
|
||||
* origin, and not a staging copy (IAPL_NOINDEX) — a staging build runs with
|
||||
* NODE_ENV=production too, and its URLs must not reach Bing.
|
||||
*/
|
||||
function publicOrigin(baseUrl?: string): null | string {
|
||||
@@ -116,12 +116,12 @@ export async function submitToIndexNow({
|
||||
})
|
||||
// 200 = accepted, 202 = accepted, key validation pending.
|
||||
if (res.status !== 200 && res.status !== 202) {
|
||||
console.warn(`[ipal] IndexNow: ${res.status} for ${urls.length} URL(s) — check the key file at ${origin}${INDEXNOW_KEY_PATH}`)
|
||||
console.warn(`[iapl] IndexNow: ${res.status} for ${urls.length} URL(s) — check the key file at ${origin}${INDEXNOW_KEY_PATH}`)
|
||||
return false
|
||||
}
|
||||
return true
|
||||
} catch (err) {
|
||||
console.warn('[ipal] IndexNow: request failed:', err instanceof Error ? err.message : err)
|
||||
console.warn('[iapl] IndexNow: request failed:', err instanceof Error ? err.message : err)
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -186,7 +186,7 @@ export function buildIndexNowHook({
|
||||
await submitToIndexNow({ baseUrl: origin, payload: req.payload, urls })
|
||||
}
|
||||
// Background: never block or fail the save.
|
||||
void run().catch((err: unknown) => console.warn('[ipal] IndexNow hook failed:', err instanceof Error ? err.message : err))
|
||||
void run().catch((err: unknown) => console.warn('[iapl] IndexNow hook failed:', err instanceof Error ? err.message : err))
|
||||
return doc
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user