Skip to content

Commit e4c7307

Browse files
authored
Fix CORS error when loading fonts in 2c (#3163)
1 parent f9c942c commit e4c7307

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/deploy-preview.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200
name: Visual Testing v2 (Cloudflare)
201201
needs: deploy-v2-cloudflare
202202
timeout-minutes: 10
203-
if: startsWith(github.head_ref || github.ref_name, 'cloudflare/')
203+
if: startsWith(github.head_ref || github.ref_name, 'cloudflare/') || github.ref == 'refs/heads/main'
204204
steps:
205205
- name: Checkout
206206
uses: actions/checkout@v4
@@ -263,7 +263,7 @@ jobs:
263263
name: Visual Testing Customers v2 (Cloudflare)
264264
needs: deploy-v2-cloudflare
265265
timeout-minutes: 8
266-
if: startsWith(github.head_ref || github.ref_name, 'cloudflare/')
266+
if: startsWith(github.head_ref || github.ref_name, 'cloudflare/') || github.ref == 'refs/heads/main'
267267
steps:
268268
- name: Checkout
269269
uses: actions/checkout@v4

packages/gitbook/public/_headers

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
/~gitbook/static/*
44
cache-control: public,max-age=31536000,immutable
55
Access-Control-Allow-Origin: *
6+
/_next/static/*
7+
Access-Control-Allow-Origin: *

0 commit comments

Comments
 (0)