fix: preview deploy for PRs (#990)

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/frontend#990
Co-authored-by: konrad <k@knt.li>
Co-committed-by: konrad <k@knt.li>
This commit is contained in:
konrad 2021-11-13 15:36:53 +00:00
parent 9a499f68e8
commit 03eee061ff
2 changed files with 16 additions and 4 deletions

View File

@ -152,9 +152,9 @@ steps:
depends_on: depends_on:
- build-prod - build-prod
when: when:
branch: event:
exclude: include:
- main - pull_request
--- ---
kind: pipeline kind: pipeline
@ -655,6 +655,6 @@ steps:
from_secret: crowdin_key from_secret: crowdin_key
--- ---
kind: signature kind: signature
hmac: 255ff4485be7c8577e82b2bb0c1736800b78470ca674e2fe380317e8c7098c06 hmac: 15df446c7e93a881249d46273485183386157229ee6a37b1ed0fcb2a0b32bbe2
... ...

View File

@ -1,3 +1,15 @@
[build] [build]
command = "yarn build" command = "yarn build"
publish = "dist" 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"