-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathnetlify.toml
More file actions
59 lines (50 loc) · 1.7 KB
/
netlify.toml
File metadata and controls
59 lines (50 loc) · 1.7 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[[edge_functions]]
function = "og-generate.png"
path = "/og-generate.png"
[build]
trailingSlash = true
[build.environment]
NODE_VERSION = "22"
NODE_OPTIONS = "--max-old-space-size=4096"
# Limit SSG worker threads to prevent OOM errors in Netlify builds
# Docusaurus defaults to 32 threads with 1GB memory each, but Netlify's
# memory limits aren't properly enforced, causing out-of-memory 137 errors.
# Limiting thread processing avoids this issue with some build time impact however,
# build are still significantly faster than without SSG in-use.
# Reference: https://github.com/facebook/docusaurus/discussions/11199
DOCUSAURUS_SSG_WORKER_THREAD_COUNT = "1"
[context.deploy-preview.build.environment]
INCLUDE_NEXT=""
EXCLUDE_CHANGELOG=""
EXCLUDE_PLATFORM_CLI="true"
EXCLUDE_PLATFORM_ENTERPRISE=""
EXCLUDE_PLATFORM_API="false"
EXCLUDE_PLATFORM_OPENAPI="false"
EXCLUDE_MULTIQC="true"
EXCLUDE_FUSION="true"
EXCLUDE_WAVE="true"
# Seqera API docs are too large to host / build on netlify on their own.
# The appropriate ENVVAR is set to disable the API Builds on Netlify for the main docs site.
# Asset and image routing handled by Edge Function
# See netlify/edge-functions/asset-proxy.js
[[edge_functions]]
function = "asset-proxy"
path = "/assets/*"
[[edge_functions]]
function = "asset-proxy"
path = "/img/*"
[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = [
"node_modules/.cache",
".docusaurus"
]
[[redirects]]
from = "/platform-api/*"
to = "https://seqera-docs-api.netlify.app/platform-api/:splat"
status = 200
[[redirects]]
from = "/nextflow/*"
to = "https://docs-migration.netlify.app/nextflow/:splat"
status = 200