forked from cert-manager/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
29 lines (25 loc) · 1.04 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
[build]
publish = "out/"
command = "./scripts/build-release"
[build.environment]
NODE_VERSION = "16"
NETLIFY_NEXT_PLUGIN_SKIP = "true"
NEXT_PUBLIC_DOMAIN_URL = "https://cert-manager.io"
[context.production.environment]
NEXT_PUBLIC_ENABLE_ANALYTICS = "true"
NEXT_PUBLIC_DOCS_SEARCH_APP_ID = "01YP6XYAE7"
NEXT_PUBLIC_DOCS_SEARCH_INDEX_NAME = "cert-manager"
NEXT_PUBLIC_DOMAIN_URL = "https://cert-manager.io"
# Prevent search engines from indexing preview sites for branch deploys. See
# - https://docs.netlify.com/routing/headers/#custom-headers-for-different-branch-or-deploy-contexts
# - https://developers.google.com/search/docs/crawling-indexing/block-indexing
[context.branch-deploy]
command = "./scripts/build-release && cp ./custom-headers/branch-deploy-site-headers ./out/_headers"
# Configuration for `netlify dev` which tells it to load nextjs, tells it where
# to find (and reload) static content and _redirects, and tells it not to open a
# new browser window.
[dev]
framework = "next"
port = 8888
publish = "public"
autoLaunch = false