Skip to content

Commit

Permalink
Include future posts in Netlify previews (#903)
Browse files Browse the repository at this point in the history
* Include future posts in Netlify previews

* Add comments in netlify.toml

* Change lines order in netlify.toml
  • Loading branch information
remibetin authored Oct 8, 2024
1 parent 9ccc11c commit b2316b6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
[build]
# with debugging: command = "git submodule update --init --remote && bundle exec jekyll build --verbose --trace --config '_config.yml,_config_staging.yml'"
[context.production]
# Applies to the staging environment, generated from the `main` branch.
command = "git submodule update --init --remote && npm install && bundle exec jekyll build --profile --trace --config '_config.yml,_config_staging.yml'"
# with debugging: command = "git submodule update --init --remote && bundle exec jekyll build --verbose --trace --config '_config.yml,_config_staging.yml'"

[context.deploy-preview]
# Applies to deploy previews, generated from pull requests.
# Include posts with a future date
command = "git submodule update --init --remote && npm install && bundle exec jekyll build --profile --trace --config '_config.yml,_config_staging.yml' --future"
# with debugging: command = "git submodule update --init --remote && bundle exec jekyll build --verbose --trace --config '_config.yml,_config_staging.yml' --future"

[build]
publish = "_site"

[build.environment]
Expand Down

0 comments on commit b2316b6

Please sign in to comment.