-
Notifications
You must be signed in to change notification settings - Fork 366
/
netlify.toml
36 lines (33 loc) · 1.54 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
# Netlify is handled and authorized by Mahe and we use a free plan.
#
# Netlify currently has a design issue internally so they cannot distinguish
# cancel jobs from failed jobs. So we disabled all notification from starting
# or cancelling/failing jobs so that non-docs related PRs are not spamed with
# Netlify notifications. See https://answers.netlify.com/t/deploy-notifications-cancel-vs-failure/37300.
[build]
base = "/docs"
publish = "public"
command = "npm ci && hugo --environment development"
# The ignore command is used by Netlify deploy bot to filter if the PR should
# be previewed or not, and generally if the website should be built or not.
#
# CACHED_COMMIT_REF: reference ID (also known as “SHA” or “hash”) of the last
# commit that we built before the current build. When a build runs without
# cache, CACHED_COMMIT_REF will be the same as the COMMIT_REF.
#
# COMMIT_REF: reference ID (also known as “SHA” or “hash”) of the commit
# we’re building.
#
# See https://answers.netlify.com/t/support-guide-how-to-use-the-ignore-command/37517
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."
[build.environment]
HUGO_VERSION = "0.126.2"
# Hugo has "enableRobotsTXT" to false on the development environment. Here
# making sure that even the "main" deployment on Netlify (so far available at
# "https://tetragon.netlify.app/"), includes noindex, nofollow. Only the
# deployment on GitHub pages should build with the production environment and
# enable robots.txt.
[[header]]
for = "/"
[headers.values]
X-Robots-Tag = "noindex, nofollow"