-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Expand file tree
/
Copy pathnetlify.toml
More file actions
55 lines (46 loc) · 1.9 KB
/
netlify.toml
File metadata and controls
55 lines (46 loc) · 1.9 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
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = ".next"
# Default build command.
# Remove .next/cache after build to free ~4GB of webpack cache before the
# Netlify plugin copies static assets. Next.js 16 per-page output is ~30%
# larger than Next.js 14 (.segments trees, RSC payloads), leaving little
# headroom on the build VM. The cache is only useful for incremental builds
# which don't apply on Netlify (each build starts fresh).
command = "pnpm build && rm -rf .next/cache"
[build.environment]
NEXT_FORCE_EDGE_IMAGES="true"
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "https://esp.ethereum.foundation"
[[plugins]]
package = "@netlify/plugin-nextjs"
[[plugins]]
package = "@netlify/plugin-lighthouse"
[[plugins.inputs.audits]]
path = "en/"
[[plugins.inputs.audits]]
path = "en/wallets/find-wallet/"
[[plugins.inputs.audits]]
path = "en/staking/"
[[plugins.inputs.audits]]
path = "en/whitepaper/"
[[plugins.inputs.audits]]
path = "en/nft/"
[[plugins.inputs.audits]]
path = "en/developers/docs/intro-to-ethereum/"
[[plugins.inputs.audits]]
path = "en/developers/tutorials/creating-a-wagmi-ui-for-your-contract/"
[functions]
included_files = ["i18n.config.json", "src/intl/**/*", "src/data-layer/mocks/**/*"]
# Override SITE_URL for named branches with custom subdomains so canonical
# URLs and OG metadata use the custom domain instead of *.netlify.app.
[context.dev.environment]
NEXT_PUBLIC_SITE_URL = "https://dev.ethereum.org"
[context.staging.environment]
NEXT_PUBLIC_SITE_URL = "https://staging.ethereum.org"