Skip to content

Commit

Permalink
feat: migrate /codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
amio committed Jun 28, 2023
1 parent b448741 commit 4b969c1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion libs/badge-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const liveBadgeList = [
'travis',
'circleci',
'appveyor',
'codecov',
'codacy',
'coveralls',
'azure-pipelines',
Expand Down
2 changes: 2 additions & 0 deletions libs/badge-list2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import npm from '../pages/api/npm'
import bundlephobia from '../pages/api/bundlephobia'
import packagephobia from '../pages/api/packagephobia'
import codeclimate from '../pages/api/codeclimate'
import codecov from '../pages/api/codecov'
import chromeWebStore from '../pages/api/chrome-web-store'
import hackage from '../pages/api/hackage'
import pypi from '../pages/api/pypi'
Expand All @@ -18,6 +19,7 @@ export default {
bundlephobia: bundlephobia.meta,
packagephobia: packagephobia.meta,
codeclimate: codeclimate.meta,
codecov: codecov.meta,
'chrome-web-store': chromeWebStore.meta,
hackage: hackage.meta,
pypi: pypi.meta,
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const nextConfig = {
'/bundlephobia',
'/packagephobia',
'/codeclimate',
'/codecov',
'/chrome-web-store',
'/hackage',
'/ppm',
Expand Down
6 changes: 3 additions & 3 deletions api-/codecov.ts → pages/api/codecov.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import got from '../libs/got'
import { coverage, coverageColor } from '../libs/utils'
import { createBadgenHandler, PathArgs } from '../libs/create-badgen-handler'
import got from '../../libs/got'
import { coverage, coverageColor } from '../../libs/utils'
import { createBadgenHandler, PathArgs } from '../../libs/create-badgen-handler-next'

export default createBadgenHandler({
title: 'CodeCov',
Expand Down
4 changes: 0 additions & 4 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
"source": "/codacy/:match*",
"destination": "https://v2022.badgen.net/codacy/:match*"
},
{
"source": "/codecov/:match*",
"destination": "https://v2022.badgen.net/codecov/:match*"
},
{
"source": "/coveralls/:match*",
"destination": "https://v2022.badgen.net/coveralls/:match*"
Expand Down

1 comment on commit 4b969c1

@vercel
Copy link

@vercel vercel bot commented on 4b969c1 Jun 28, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.