-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Build draft content for local preview #48858
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
Build draft content for local preview #48858
Conversation
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
/lgtm Great, I thought about it when I didn't see the draft content for the release blog. |
|
LGTM label has been added. Git tree hash: 80269b89bca4c975bd8e56766234a058b15e97c5
|
| $(CONTAINER_RUN) --cap-drop=ALL --cap-add=AUDIT_WRITE --read-only \ | ||
| --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) \ | ||
| hugo server --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/public --cleanDestinationDir --noBuildLock | ||
| hugo server --buildDrafts --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/public --cleanDestinationDir --noBuildLock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks good!
Would it be possible to apply a similar update to the serve Makefile target as well? It’s used for testing the site locally outside of the container, so it might help improve consistency with container preview method.
Lines 58 to 59 in cee8816
| serve: module-check ## Boot the development server. | |
| hugo server --buildFuture --environment development |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe then also at line 99 to apply the change uniformly to every CMD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See line 104 @mbianchidev
Fix an issue where local previewing in server mode didn't include draft content.
c8d1b92 to
0372851
Compare
|
/retitle Build draft content for local preview |
|
/lgtm It should be implemented for every relevant CMD now |
|
LGTM label has been added. Git tree hash: 9aaf36152156f57ef42ec1f56498ecf0336d2918
|
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: katcosgrove The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fix an issue where local previewing in a container didn't include draft content.