Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
# github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
if: ${{ github.ref == 'refs/heads/master' && !startsWith(github.event.head_commit.message, 'chore(release):') && !startsWith(github.event.head_commit.message, 'docs:') }}
shell: 'script -q -e -c "bash {0}" > /dev/null'
env:
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions api/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global fetch, Response */

export const config = {
runtime: 'experimental-edge'
runtime: 'edge'
}

const NODE_ENV = process.env.NODE_ENV
Expand Down Expand Up @@ -46,8 +46,8 @@ export default async request => {

return fetch(`${API_ENDPOINT}?${url.searchParams.toString()}`, {
headers: {
'x-api-key': API_KEY,
accept: request.headers.get('accept')
...request.headers,
'x-api-key': API_KEY
}
})
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
],
"scripts": {
"clean": "rm -rf node_modules",
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
"contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
"lint": "standard-markdown README.md && standard",
"postrelease": "npm run release:tags && npm run release:github",
"prerelease": "npm run update:check && npm run contributors",
Expand Down