fix: github edit link for docs pages (#21095)

This commit is contained in:
Charis
2024-02-07 16:08:43 -05:00
committed by GitHub
parent e20038e2f2
commit be2af86c9c

View File

@@ -53,7 +53,7 @@ export const getStaticProps = (async ({ params }) => {
const fullPath = join(GUIDES_DIRECTORY, relPath + '.mdx')
const mdx = await readFile(fullPath, 'utf-8')
const editLink = `https://github.com/supabase/supabase/blob/master/apps/docs/content/guides/${relPath}.mdx`
const editLink = `supabase/supabase/blob/master/apps/docs/content/guides/${relPath}.mdx`
const { data: frontmatter, content } = matter(mdx)
if (!isValidGuideFrontmatter(frontmatter)) {