chore: fix headers (#4958)
Co-authored-by: Service Account <service@jan.ai>
This commit is contained in:
parent
86b2a64c70
commit
869b89c78d
2
.github/workflows/jan-docs-new-release.yaml
vendored
2
.github/workflows/jan-docs-new-release.yaml
vendored
@ -49,7 +49,7 @@ jobs:
|
||||
run: yarn install
|
||||
- name: Build website
|
||||
working-directory: docs
|
||||
run: export NODE_ENV=production && yarn build && cp _redirects out/_redirects
|
||||
run: export NODE_ENV=production && yarn build && cp _redirects out/_redirects && cp _headers out/_headers
|
||||
|
||||
- name: Publish to Cloudflare Pages Production
|
||||
uses: cloudflare/pages-action@v1
|
||||
|
||||
2
.github/workflows/jan-docs.yml
vendored
2
.github/workflows/jan-docs.yml
vendored
@ -55,7 +55,7 @@ jobs:
|
||||
run: yarn install
|
||||
- name: Build website
|
||||
working-directory: docs
|
||||
run: export NODE_ENV=production && yarn build && cp _redirects out/_redirects
|
||||
run: export NODE_ENV=production && yarn build && cp _redirects out/_redirects && cp _headers out/_headers
|
||||
|
||||
- name: Publish to Cloudflare Pages PR Preview and Staging
|
||||
if: github.event_name == 'pull_request'
|
||||
|
||||
4
docs/_headers
Normal file
4
docs/_headers
Normal file
@ -0,0 +1,4 @@
|
||||
/*
|
||||
X-Frame-Options: SAMEORIGIN
|
||||
Permissions-Policy: interest-cohort=()
|
||||
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
|
||||
Loading…
x
Reference in New Issue
Block a user