mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 01:40:13 -04:00
220915094c
Now that production builds are fast, let's remove the preview build shortcuts. (One of them didn't work anyway.) Having different preview and production builds can lead to edge case bugs making it into master, and we won't see much further build time improvement that's worth the risk.
17 lines
361 B
TypeScript
17 lines
361 B
TypeScript
import type { ICommonSection } from '~/components/reference/Reference.types'
|
|
|
|
async function handleRefGetStaticPaths(sections: ICommonSection[]) {
|
|
return {
|
|
paths: sections.map((section) => {
|
|
return {
|
|
params: {
|
|
slug: [section.slug],
|
|
},
|
|
}
|
|
}),
|
|
fallback: 'blocking',
|
|
}
|
|
}
|
|
|
|
export default handleRefGetStaticPaths
|