diff --git a/src/start.ts b/src/start.ts index 1a503db..6f0dfe0 100644 --- a/src/start.ts +++ b/src/start.ts @@ -5,23 +5,11 @@ import { getLLMText, markdownPathToSlugs, source } from '@/lib/source'; import { getBlogLLMText, blogSource } from '@/lib/blog-source.server'; import homepageMarkdown from './content/homepage.md?raw'; -const LIVE_FETCH_UA_RE = - /(? { const explicitMarkdown = pathname.endsWith(MARKDOWN_EXT); // Explicit `.md` URLs always serve markdown; bare URLs only when the client prefers it. - if (!explicitMarkdown && !wantsMarkdown(request)) { + if (!explicitMarkdown && !prefersMarkdownByAccept(request)) { return next(); }