portails/netlify.toml

49 lines
1.5 KiB
TOML
Raw Permalink Normal View History

2020-04-15 15:48:16 +02:00
[build]
2020-11-04 08:26:58 +01:00
publish = "public"
functions = "functions"
2020-04-15 15:48:16 +02:00
[build.environment]
2024-01-11 20:50:52 +01:00
NODE_VERSION = "18.16.1"
NPM_VERSION = "9.5.1"
2020-11-04 08:26:58 +01:00
[context.production]
2023-04-18 15:10:33 +02:00
command = "pnpm build"
2020-04-15 15:48:16 +02:00
[context.deploy-preview]
2023-04-18 15:10:33 +02:00
command = "pnpm build -- -b $DEPLOY_PRIME_URL"
2020-04-15 15:48:16 +02:00
[context.branch-deploy]
2023-04-18 15:10:33 +02:00
command = "pnpm build -- -b $DEPLOY_PRIME_URL"
2021-04-02 19:45:05 +02:00
[context.next]
2023-04-18 15:10:33 +02:00
command = "pnpm build"
2021-04-02 19:45:05 +02:00
[context.next.environment]
HUGO_ENV = "next"
[dev]
framework = "#custom"
2023-04-18 15:10:33 +02:00
command = "pnpm dev"
2021-04-02 19:45:05 +02:00
targetPort = 1313
port = 8888
publish = "public"
autoLaunch = false
2023-04-18 15:10:33 +02:00
# Redirects and rewrites — https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file
# Custom headers — https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file
[[headers]]
for = "/*"
[headers.values]
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options = "nosniff"
X-XSS-Protection = "1; mode=block"
2023-05-23 15:05:47 +02:00
Content-Security-Policy = "default-src 'self'; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self' https://avatars.githubusercontent.com data:; script-src 'self' 'nonce-dXNlcj0iaGVsbG8iLGRvbWFpbj0iaGVua3ZlcmxpbmRlLmNvbSIsZG9jdW1lbnQud3JpdGUodXNlcisiQCIrZG9tYWluKTs=' 'sha256-aWZ3y/RxbBYKHXH0z8+8ljrHG1mSBvyzSfxSMjBSaXk='; style-src 'self'"
2023-04-18 15:10:33 +02:00
X-Frame-Options = "SAMEORIGIN"
Referrer-Policy = "strict-origin"
2023-06-17 15:53:53 +02:00
Permissions-Policy = "geolocation=(self), microphone=(), camera=()"
2023-04-18 15:10:33 +02:00
Cache-Control= '''
public,
max-age=31536000'''
Access-Control-Allow-Origin = "*"