Skip to content

Update deployment site/preview gh pages#126

Merged
leecalcote merged 1 commit intolayer5io:masterfrom
CodexRaunak:add-deployment-gh-pages
Apr 16, 2026
Merged

Update deployment site/preview gh pages#126
leecalcote merged 1 commit intolayer5io:masterfrom
CodexRaunak:add-deployment-gh-pages

Conversation

@CodexRaunak
Copy link
Copy Markdown
Contributor

Notes for Reviewers

  • Update deployment site/preview gh pages

Signed commits

  • Yes, I signed my commits.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Makefile to include specialized CI build targets (build-production and build-preview) and improves the setup target to use npm ci when lockfiles are present. Feedback was provided to remove draft and future content flags from the production build to ensure only published content is deployed, and to include the --cleanDestinationDir flag in both CI targets to prevent stale files from persisting between builds.

Comment thread Makefile Outdated

## CI: Build production site output
build-production:
HUGO_ENVIRONMENT=production HUGO_ENV=production hugo build -D --gc --buildFuture --minify $(if $(BASE_URL),--baseURL $(BASE_URL),)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The build-production target includes the -D (--buildDrafts) and --buildFuture flags. These flags are typically used for development or preview environments to include content that is still being worked on or scheduled for the future. For a production build, these should generally be omitted to ensure only published and current content is deployed. Additionally, this target is inconsistent with the build:production script in package.json, which does not include these flags. It is also recommended to include --cleanDestinationDir to ensure stale files from previous builds are removed.

	HUGO_ENVIRONMENT=production HUGO_ENV=production hugo build --cleanDestinationDir --gc --minify $(if $(BASE_URL),--baseURL $(BASE_URL),)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I used to render the draft examples. Another option could be to remove the draft:true from the content formatting examples, but I think they should render in the deployment.

Comment thread Makefile Outdated
Signed-off-by: Raunak Madan <madanraunak24@gmail.com>
@CodexRaunak CodexRaunak force-pushed the add-deployment-gh-pages branch from ece3164 to 5297409 Compare April 15, 2026 22:45
@leecalcote leecalcote merged commit cc7fa04 into layer5io:master Apr 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants