forked from w3c/wai-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
38 lines (30 loc) · 1.37 KB
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[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]
RUBY_VERSION = "3.3.3"
[[redirects]]
from = "/wai-website"
to = "/"
status = 404
[dev]
command = "bundle exec jekyll serve -w --livereload --config _config.yml,_config_staging.yml"
[functions]
directory = "_functions"
node_bundler = "esbuild"
[[plugins]]
package = "@netlify/plugin-functions-install-core"
[[plugins]]
# See https://github.com/netlify/netlify-plugin-lighthouse#readme
package = "@netlify/plugin-lighthouse"
[plugins.inputs.settings]
preset = "desktop" # default is mobile
locale = "en"