Compare commits

...

5 Commits

Author SHA1 Message Date
Samy Pessé 730771beb3 Try longer 2025-04-09 23:24:28 +02:00
Samy Pessé aaf901c9e1 Again 2025-04-09 23:03:51 +02:00
Samy Pessé 7b00d34342 Fix condition 2025-04-09 20:34:23 +02:00
Samy Pessé 957d1e30e6 Fix condition 2025-04-09 19:50:12 +02:00
Samy Pessé 93f467cf0f Fix assets URLs when base finishes with a slash 2025-04-09 19:34:27 +02:00
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -199,8 +199,8 @@ jobs:
runs-on: ubuntu-latest
name: Visual Testing v2 (Cloudflare)
needs: deploy-v2-cloudflare
timeout-minutes: 10
if: startsWith(github.ref_name, 'cloudflare/')
timeout-minutes: 15
if: startsWith(github.head_ref || github.ref_name, 'cloudflare/')
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -263,7 +263,7 @@ jobs:
name: Visual Testing Customers v2 (Cloudflare)
needs: deploy-v2-cloudflare
timeout-minutes: 8
if: startsWith(github.ref_name, 'cloudflare/')
if: startsWith(github.head_ref || github.ref_name, 'cloudflare/')
steps:
- name: Checkout
uses: actions/checkout@v4
+2 -1
View File
@@ -1,8 +1,9 @@
import { GITBOOK_ASSETS_URL, GITBOOK_URL } from '@v2/lib/env';
import { joinPathWithBaseURL } from './paths';
/**
* Create a public URL for an asset.
*/
export function getAssetURL(path: string): string {
return `${GITBOOK_ASSETS_URL || GITBOOK_URL}/~gitbook/static/${path}`;
return joinPathWithBaseURL(GITBOOK_ASSETS_URL || GITBOOK_URL, `~gitbook/static/${path}`);
}