File tree Expand file tree Collapse file tree 5 files changed +1
-11
lines changed
Expand file tree Collapse file tree 5 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 11# https://fumadocs.dev/docs/mdx/async
2- MDX_ASYNC =
32LOCALE = en
4- ORAMA_PRIVATE_API_KEY_EN =
5- ORAMA_PRIVATE_API_KEY_ZH_HANS =
3+ ORAMA_PRIVATE_API =
Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ export async function generateMetadata(props: {
5858}
5959
6060export function generateStaticParams ( ) : { slug : string } [ ] {
61- if ( process . env . GEN_DOC_STATIC !== 'true' ) return [ ] ;
6261 return blog . getPages ( ) . map ( ( page ) => ( {
6362 slug : page . slugs [ 0 ] ,
6463 } ) ) ;
Original file line number Diff line number Diff line change @@ -111,7 +111,6 @@ function DocsRelated({ page }: { page: DocsPage }) {
111111}
112112
113113export async function generateStaticParams ( ) {
114- if ( process . env . GEN_DOC_STATIC !== 'true' ) return [ ] ;
115114 return docs . generateParams ( ) ;
116115}
117116
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ export default async function Docs(props: {
4040}
4141
4242export async function generateStaticParams ( ) {
43- if ( process . env . GEN_DOC_STATIC !== 'true' ) return [ ] ;
4443 return learn . generateParams ( ) ;
4544}
4645
Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ export async function GET(
1212 _req : Request ,
1313 { params } : { params : Promise < { page : string } > } ,
1414) {
15- if ( process . env . GEN_ORAMA_STATIC !== 'true' ) {
16- throw notFound ( ) ;
17- }
1815 const { page = '0' } = await params ;
1916 const locale = await getLocale ( ) ;
2017
@@ -24,8 +21,6 @@ export async function GET(
2421}
2522
2623export function generateStaticParams ( ) {
27- if ( process . env . GEN_ORAMA_STATIC !== 'true' ) return [ ] ;
28-
2924 const pages = docs . getPages ( ) ;
3025 const pageSize = 20 ;
3126 const pageIndex = Math . ceil ( pages . length / pageSize ) ;
You can’t perform that action at this time.
0 commit comments