[build]
	command = "pnpm run build"
	publish = "dist"

[build.environment]
	NODE_VERSION = "14.7"

[dev]
	command = "pnpm run dev"
	publish = "dist"

[[headers]]
	for = "/*"
	[headers.values]
		X-Frame-Options = "DENY"
		X-XSS-Protection = "1; mode=block"
		X-Content-Type-Options = "nosniff"
		Referrer-Policy= "no-referrer-when-downgrade"
		Permissions-Policy = "interest-cohort=()"

[[headers]]
	for = "/sw.js"

	[headers.values]
		cache-control = "max-age=0,no-cache,no-store,must-revalidate"

[[redirects]]
from = "/artikel/*"
to = "/:splat"
status = 301
force = false
