Urara-Blog/netlify.toml
2023-05-09 01:43:16 +08:00

63 lines
No EOL
1.7 KiB
TOML

[build]
command = "corepack prepare pnpm@8.4.0 --activate && pnpm i && npx pnpm build"
publish = "build"
[build.environment]
NPM_FLAGS = "--version"
AWS_LAMBDA_JS_RUNTIME = "nodejs16.x"
[functions]
node_bundler = "esbuild"
[[headers]]
for = "/manifest.webmanifest"
[headers.values]
Content-Type = "application/manifest+json"
[[headers]]
for = "/assets/*"
[headers.values]
cache-control = '''
max-age=31536000,
immutable
'''
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "https://seviche.cc"
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
X-XSS-Protection = "1; mode=block"
Content-Security-Policy = "style-src 'self' 'unsafe-inline' http://fonts.cdnfonts.com/css/lato; script-src 'self' 'unsafe-inline' https://*.seviche.cc https://giscus.app https://hexoverc.vercel.app/umami.js https://cdn.splitbee.io/sb.js https://app.embed.im/snow.js https://plausiable.seviche.cc/js/script.js"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "usb=()"
[[redirects]]
from = "/.well-known/webfinger"
to = "https://kongwoo.icu/.well-known/webfinger?resource=acct:blog@kongwoo.icu"
status = 302
force = true
[[redirects]]
from = "/.well-known/host-meta"
to = "https://fed.brid.gy/.well-known/host-meta"
status = 302
force = true
[[redirects]]
from = "/.well-known/host-meta.xrd"
to = "https://fed.brid.gy/.well-known/host-meta.xrd"
status = 302
force = true
[[redirects]]
from = "/.well-known/host-meta.jrd"
to = "https://fed.brid.gy/.well-known/host-meta.jrd"
status = 302
force = true
[[redirects]]
from = "/.well-known/webfinger"
to = "https://fed.brid.gy/.well-known/webfinger"
status = 302
force = true