diff --git a/.github/workflows/commit-preview.yaml b/.github/workflows/commit-preview.yaml index 1cc21f67..c46d8a21 100644 --- a/.github/workflows/commit-preview.yaml +++ b/.github/workflows/commit-preview.yaml @@ -11,6 +11,9 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + filter: 'blob:none' - name: Setup Node.js uses: actions/setup-node@v4 diff --git a/.github/workflows/manual-publish.yaml b/.github/workflows/manual-publish.yaml index 66399173..28442dde 100644 --- a/.github/workflows/manual-publish.yaml +++ b/.github/workflows/manual-publish.yaml @@ -11,6 +11,9 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + filter: 'blob:none' - name: Setup Node.js uses: actions/setup-node@v4 diff --git a/.github/workflows/pr-preview.yaml b/.github/workflows/pr-preview.yaml index 12499dd0..4402b30b 100644 --- a/.github/workflows/pr-preview.yaml +++ b/.github/workflows/pr-preview.yaml @@ -10,6 +10,9 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + filter: 'blob:none' - name: Setup Node.js uses: actions/setup-node@v4 diff --git a/functions/api/v1/latest-version-components.js b/functions/api/v1/latest-version-components.js index 3f241b4f..8286c1aa 100644 --- a/functions/api/v1/latest-version-components.js +++ b/functions/api/v1/latest-version-components.js @@ -58,9 +58,9 @@ export async function onRequest(context) { } } - return new Response(JSON.stringify(output), { status: 200, headers: { "Content-Type": "text/json" } }); + return new Response(JSON.stringify(output), { status: 200, headers: { "Content-Type": "application/json" } }); } catch (error) { - return new Response(JSON.stringify({ error: error.message }), { status: 500, headers: { "Content-Type": "text/json" } }); + return new Response(JSON.stringify({ error: error.message }), { status: 500, headers: { "Content-Type": "application/json" } }); } }