File tree 3 files changed +9
-3
lines changed 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codex.docs" ,
3
3
"license" : " Apache-2.0" ,
4
- "version" : " v2.0 .0-rc.4 " ,
4
+ "version" : " v2.2 .0-rc.1 " ,
5
5
"type" : " module" ,
6
6
"bin" : {
7
7
"codex.docs" : " dist/backend/app.js"
Original file line number Diff line number Diff line change @@ -111,7 +111,10 @@ export default async function buildStatic(): Promise<void> {
111
111
await renderPage ( page ) ;
112
112
}
113
113
114
- await renderIndexPage ( config . indexPageUri ) ;
114
+ // Check if index page is enabled
115
+ if ( config . indexPage . enabled ) {
116
+ await renderIndexPage ( config . indexPage . uri ) ;
117
+ }
115
118
console . log ( 'Static files built' ) ;
116
119
117
120
console . log ( 'Copy public directory' ) ;
Original file line number Diff line number Diff line change @@ -90,7 +90,10 @@ const FrontendConfig = z.object({
90
90
*/
91
91
const StaticBuildConfig = z . object ( {
92
92
outputDir : z . string ( ) , // Output directory for static build
93
- indexPageUri : z . string ( ) , // URI for index page to render
93
+ indexPage : z . object ( {
94
+ enabled : z . boolean ( ) , // Is index page enabled
95
+ uri : z . string ( ) , // Index page uri
96
+ } ) ,
94
97
} ) ;
95
98
96
99
export type StaticBuildConfig = z . infer < typeof StaticBuildConfig > ;
You can’t perform that action at this time.
0 commit comments