Single-language sites: Markdown route without the locale param; i18n docs corrected
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -665,8 +665,8 @@ export function createContentHelpers({
|
||||
const llmsRoute = () => llms()()
|
||||
/** app/llms-full.txt/route.ts: `export { llmsFullRoute as GET } from '@/lib/content'` */
|
||||
const llmsFullRoute = () => llmsFull()()
|
||||
/** app/md/[locale]/[[...slug]]/route.ts: `export { markdownRoute as GET } from '@/lib/content'` */
|
||||
const markdownRoute = (req: Request, ctx: { params: Promise<{ locale: string; slug?: string[] }> }) => md().GET(req, ctx)
|
||||
/** app/md/[locale]/[[...slug]]/route.ts (single language: app/md/[[...slug]]/route.ts): `export { markdownRoute as GET } from '@/lib/content'` */
|
||||
const markdownRoute = (req: Request, ctx: { params: Promise<{ locale?: string; slug?: string[] }> }) => md().GET(req, ctx)
|
||||
/** app/api/mcp/route.ts: `export { mcpGET as GET, mcpPOST as POST } from '@/lib/content'` */
|
||||
const mcpGET = () => mcp().GET()
|
||||
const mcpPOST = (req: Request) => mcp().POST(req)
|
||||
|
||||
Reference in New Issue
Block a user