chore: fix headers (#4958)

Co-authored-by: Service Account <service@jan.ai>
This commit is contained in:
hiento09 2025-05-02 20:56:33 +07:00 committed by GitHub
parent 86b2a64c70
commit 869b89c78d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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
View File

@ -0,0 +1,4 @@
/*
X-Frame-Options: SAMEORIGIN
Permissions-Policy: interest-cohort=()
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload