Skip to content

Commit b2316b6

Browse files
authored
Include future posts in Netlify previews (#903)
* Include future posts in Netlify previews * Add comments in netlify.toml * Change lines order in netlify.toml
1 parent 9ccc11c commit b2316b6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

netlify.toml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
[build]
2-
# with debugging: command = "git submodule update --init --remote && bundle exec jekyll build --verbose --trace --config '_config.yml,_config_staging.yml'"
1+
[context.production]
2+
# Applies to the staging environment, generated from the `main` branch.
33
command = "git submodule update --init --remote && npm install && bundle exec jekyll build --profile --trace --config '_config.yml,_config_staging.yml'"
4+
# with debugging: command = "git submodule update --init --remote && bundle exec jekyll build --verbose --trace --config '_config.yml,_config_staging.yml'"
5+
6+
[context.deploy-preview]
7+
# Applies to deploy previews, generated from pull requests.
8+
# Include posts with a future date
9+
command = "git submodule update --init --remote && npm install && bundle exec jekyll build --profile --trace --config '_config.yml,_config_staging.yml' --future"
10+
# with debugging: command = "git submodule update --init --remote && bundle exec jekyll build --verbose --trace --config '_config.yml,_config_staging.yml' --future"
11+
12+
[build]
413
publish = "_site"
514

615
[build.environment]

0 commit comments

Comments
 (0)