portails/netlify.toml

61 lines
1.7 KiB
TOML
Raw 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]
2023-04-18 15:10:33 +02:00
NODE_VERSION = "18.12.1"
NPM_VERSION = "8.19.2"
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"
2022-03-25 11:29:16 +01:00
[[plugins]]
package = "netlify-plugin-submit-sitemap"
[plugins.inputs]
2023-04-18 15:10:33 +02:00
baseUrl = "/"
2022-03-25 11:29:16 +01:00
sitemapPath = "/sitemap.xml"
ignorePeriod = 0
providers = [
"google",
"yandex"
]
2021-04-02 19:45:05 +02:00
[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"
Feature-Policy = "geolocation 'self'"
Cache-Control= '''
public,
max-age=31536000'''
Access-Control-Allow-Origin = "*"