Skip to content

Commit

Permalink
re-add fetch-depth and fix api response MIME type (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP authored Apr 26, 2024
1 parent f849376 commit 449c26d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/commit-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/manual-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions functions/api/v1/latest-version-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" } });
}
}

1 comment on commit 449c26d

@Cozy-GitHub
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See preview on Cloudflare Pages: https://7442dbf3.quiltmc-org.pages.dev

Please sign in to comment.