| import fs from 'fs' | |
| import path from 'path' | |
| export function getMdxPath(lang: string, slug: string[]) { | |
| return path.join(process.cwd(), 'content', lang, ...slug) + '.mdx' | |
| } | |
| export function mdxExists(mdxPath: string) { | |
| return fs.existsSync(mdxPath) | |
| } |
| import fs from 'fs' | |
| import path from 'path' | |
| export function getMdxPath(lang: string, slug: string[]) { | |
| return path.join(process.cwd(), 'content', lang, ...slug) + '.mdx' | |
| } | |
| export function mdxExists(mdxPath: string) { | |
| return fs.existsSync(mdxPath) | |
| } |