File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
apps/docs/src/app/[locale]/static/[page] Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 25
25
- name : Build docs app
26
26
shell : bash
27
27
run : pnpm build:docs
28
+ env :
29
+ GEN_ORAMA_STATIC : " true"
30
+ MDX_ASYNC : " true"
31
+ NODE_OPTIONS : " --max-old-space-size=8192"
28
32
- name : Run search index update
29
33
shell : bash
30
34
run : pnpm run update-search-index
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ export async function GET(
22
22
}
23
23
24
24
export function generateStaticParams ( ) {
25
+ if ( process . env . GEN_ORAMA_STATIC !== 'true' ) return [ ] ;
26
+
25
27
const params = routing . locales . flatMap ( ( locale ) => {
26
28
const source = sourceMap [ locale ] ;
27
29
const pages = source . getPages ( ) ;
@@ -35,6 +37,6 @@ export function generateStaticParams() {
35
37
} ;
36
38
} ) ;
37
39
} ) ;
38
- // console.log('params ', params);
40
+ console . log ( 'orama generateStaticParams ' , params ) ;
39
41
return params ;
40
42
}
You can’t perform that action at this time.
0 commit comments