forked from nextflow-io/nextflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
45 lines (37 loc) · 1.5 KB
/
Copy pathnetlify.toml
File metadata and controls
45 lines (37 loc) · 1.5 KB
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
39
40
41
42
43
44
45
# Netlify configuration for Nextflow documentation
# No deployment previews unless the docs are edited
[build]
# Base directory for the build
base = ".docusaurus_site/"
# Build command
command = "npm run build"
# Directory to publish (output directory)
publish = "build/"
# Ignore builds if no changes in the docs site or content.
# `.` is the base dir (.docusaurus_site/); `../docs` is the content
# directory, which is symlinked in as `.docusaurus_site/docs -> ../docs`.
# git tracks the content under the `docs/` path, so a diff scoped only to
# `.docusaurus_site/` cannot see through the symlink and would wrongly skip
# content-only commits. Watch both paths.
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../docs"
# Node.js version
[build.environment]
# Set node version
NODE_VERSION = "22"
# Limit Node.js memory to 2GB
NODE_OPTIONS = "--max-old-space-size=2048"
[[context.deploy-preview.headers]]
for = "/*"
[context.deploy-preview.headers.values]
X-Robots-Tag = "noindex"
[[context.branch-deploy.headers]]
for = "/*"
[context.branch-deploy.headers.values]
X-Robots-Tag = "noindex"
# Production: emit `X-Robots-Tag: noindex` only for requests that hit
# docs-migration.netlify.app directly. Requests proxied via docs.seqera.io
# are detected through `X-Forwarded-Host` and left indexable so the canonical
# URL (https://docs.seqera.io/nextflow/) is the one that gets indexed.
[[context.production.edge_functions]]
path = "/*"
function = "robots-tag"