summaryrefslogtreecommitdiffstats
path: root/netlify.toml
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-09 13:26:58 +0200
committerGitHub <noreply@github.com>2022-07-09 13:26:58 +0200
commit0942efbdf7fb3573517b2f7e52803c3982529caf (patch)
tree26582d034e4e3449c403fe5e0b9a80283dec2948 /netlify.toml
parent46e8edfce3738ea14388546ac8690144b7633bb3 (diff)
parentb3c39de2e5265cb81d0268d08c0cd4cb47a93f0d (diff)
downloadgohugo-theme-ed-0942efbdf7fb3573517b2f7e52803c3982529caf.tar.gz
Merge pull request #10 from sergeyklay/feature/update-config
Update config for exampleSite
Diffstat (limited to 'netlify.toml')
-rw-r--r--netlify.toml4
1 files changed, 2 insertions, 2 deletions
diff --git a/netlify.toml b/netlify.toml
index afa9e75..a819a2d 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -27,7 +27,7 @@
# Deploy Preview context: all deploys generated from
# a pull/merge request will inherit these settings.
[context.deploy-preview]
- command = 'hugo --source=exampleSite --buildDrafts --buildFuture --baseURL ${DEPLOY_PRIME_URL} --destination ../public'
+ command = './netlify-update-csp-headers.rb; hugo --source=exampleSite --buildDrafts --buildFuture --baseURL ${DEPLOY_PRIME_URL} --destination ../public'
[context.deploy-preview.environment]
HUGO_ENV = 'development'
@@ -89,7 +89,7 @@
# (including inline scripts and event-handling HTML attributes).
Content-Security-Policy = """
default-src 'self';
- script-src 'self' *.netlify.app *.netlify.com *.googletagmanager.com;
+ script-src 'self' *.googletagmanager.com;
style-src 'self';
img-src 'self' data: *.google-analytics.com *.googletagmanager.com *.gstatic.com;
font-src 'self';