From 03eee061ff96a4803a1fbe0d2ec409a5f3cc52f7 Mon Sep 17 00:00:00 2001 From: konrad Date: Sat, 13 Nov 2021 15:36:53 +0000 Subject: [PATCH] fix: preview deploy for PRs (#990) Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/990 Co-authored-by: konrad Co-committed-by: konrad --- .drone.yml | 8 ++++---- netlify.toml | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 87185436c1..0553195be0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -152,9 +152,9 @@ steps: depends_on: - build-prod when: - branch: - exclude: - - main + event: + include: + - pull_request --- kind: pipeline @@ -655,6 +655,6 @@ steps: from_secret: crowdin_key --- kind: signature -hmac: 255ff4485be7c8577e82b2bb0c1736800b78470ca674e2fe380317e8c7098c06 +hmac: 15df446c7e93a881249d46273485183386157229ee6a37b1ed0fcb2a0b32bbe2 ... diff --git a/netlify.toml b/netlify.toml index c549a3ca63..24ee45e7fa 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,15 @@ [build] command = "yarn build" publish = "dist" + +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 + +[[headers]] + for = "/*" + [headers.values] + X-Frame-Options = "DENY" + X-XSS-Protection = "1; mode=block" + X-Robots-Tag = "noindex"