File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " codex.docs" ,
33 "license" : " Apache-2.0" ,
4- "version" : " v2.0 .0-rc.4 " ,
4+ "version" : " v2.2 .0-rc.1 " ,
55 "type" : " module" ,
66 "bin" : {
77 "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> {
111111 await renderPage ( page ) ;
112112 }
113113
114- await renderIndexPage ( config . indexPageUri ) ;
114+ // Check if index page is enabled
115+ if ( config . indexPage . enabled ) {
116+ await renderIndexPage ( config . indexPage . uri ) ;
117+ }
115118 console . log ( 'Static files built' ) ;
116119
117120 console . log ( 'Copy public directory' ) ;
Original file line number Diff line number Diff line change @@ -90,7 +90,10 @@ const FrontendConfig = z.object({
9090 */
9191const StaticBuildConfig = z . object ( {
9292 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+ } ) ,
9497} ) ;
9598
9699export type StaticBuildConfig = z . infer < typeof StaticBuildConfig > ;
You can’t perform that action at this time.
0 commit comments