1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 21:29:41 +02:00

Added enable parameter for rendering index page (#289)

This commit is contained in:
Vyacheslav Chernyshev 2022-12-13 15:19:50 +03:00 committed by GitHub
parent 8a8db5c136
commit d3e0cb176c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View file

@ -90,7 +90,10 @@ const FrontendConfig = z.object({
*/
const StaticBuildConfig = z.object({
outputDir: z.string(), // Output directory for static build
indexPageUri: z.string(), // URI for index page to render
indexPage: z.object({
enabled: z.boolean(), // Is index page enabled
uri: z.string(), // Index page uri
}),
});
export type StaticBuildConfig = z.infer<typeof StaticBuildConfig>;