Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added enable parameter for rendering index page #289

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

slaveeks
Copy link
Member

If parameter enabled for index page is false, static file index.html will not create

package.json Show resolved Hide resolved
@@ -111,7 +111,10 @@ export default async function buildStatic(): Promise<void> {
await renderPage(page);
}

await renderIndexPage(config.indexPageUri);
// Check if index page is enabled
if (config.indexPage.enabled) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not forget to add docs for the new properties.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but for now there are no docs about static building, it is experimental feature. I think, docs about it will appear later

@slaveeks slaveeks merged commit d3e0cb1 into main Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants