mirror of
https://github.com/supabase/supabase.git
synced 2026-09-06 18:11:51 +08:00
10 lines
342 B
TypeScript
10 lines
342 B
TypeScript
import { PROD_URL } from '~/lib/constants'
|
|
import MARKDOWN_SLUGS from '~/public/markdown/manifest.json'
|
|
|
|
const SLUGS = new Set<string>(MARKDOWN_SLUGS)
|
|
|
|
export function mdAlternate(slug: string): { 'text/markdown': string } | undefined {
|
|
if (!SLUGS.has(slug)) return undefined
|
|
return { 'text/markdown': `${PROD_URL}/guides/${slug}.md` }
|
|
}
|