-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
68 lines (58 loc) · 1.93 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[dev]
framework = "#static"
command = "deno task lume --watch"
publish = "public"
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
base = ""
# 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 = "public"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF src lume _config.ts deno.json netlify.toml"
# Default build command.
command = "deno task lume"
[build.environment]
NODE_VERSION="18"
[[redirects]]
from = "/feed/"
to = "/feed/feed.xml"
status = 200
[[headers]]
for = "/*"
[headers.values]
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
# netlify dev not working...
# Content-Security-Policy = '''
# default-src 'self' *.google-analytics.com *.googletagmanager.com *.google.com csp.withgoogle.com *.googleoptimize.com cdn.jsdelivr.net cdnjs.cloudflare.com unpkg.com *.netlify.com *.netlify.app cdn.segment.com clientstream.launchdarkly.com *.twitter.com *.facebook.com *.facebook.net d33wubrfki0l68.cloudfront.net speakerdeck.com 'unsafe-inline' 'unsafe-eval';
# img-src *;
# style-src * 'unsafe-inline';
# font-src *;
# media-src *;'''
Referrer-Policy = "same-origin"
Cross-Origin-Embedder-Policy = "false"
Permissions-Policy = '''
microphone=(),
camera=()'''
#[[plugins]]
# package = "@netlify/plugin-lighthouse"
#
# [[plugins.inputs.thresholds]]
# performance = 0.6
# accessibility = 0.9
# best-practices = 0.8
# seo = 0.9
#
# [[plugins.inputs.audits]]
# path = "/"
# output_path = "lighthouse/top.html"
# [[plugins.inputs.audits]]
# path = "/blogs/"
[[edge_functions]]
function = "og"
path = "/og/*"
[[edge_functions]]
function = "og-preview"
path = "/api/og/preview"