mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
force touch of shiki
This commit is contained in:
1 parent
1c5b0300e2
commit
18fd4ef46f
1 file changed
+6
@@ -7,6 +7,8 @@ import { flattenSections } from '~/lib/helpers'
|
||||
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
|
||||
import handleRefStaticProps from '~/lib/mdx/handleRefStaticProps'
|
||||
|
||||
import * as shiki from 'shiki'
|
||||
|
||||
const sections = flattenSections(clientLibsCommonSections)
|
||||
|
||||
export default function JSReference(props) {
|
||||
@@ -14,6 +16,10 @@ export default function JSReference(props) {
|
||||
}
|
||||
|
||||
export async function getStaticProps({ params }: { params: { slug: string[] } }) {
|
||||
const forceShiki = await shiki.getHighlighter({
|
||||
theme: 'github-light',
|
||||
})
|
||||
|
||||
return handleRefStaticProps(sections, params, '/js', '/javascript')
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user