kopia lustrzana https://github.com/badgen/badgen.net
feat: migrate /packagephobia
rodzic
aa9c6a65aa
commit
356fb58ff1
|
@ -9,7 +9,6 @@ export const liveBadgeList = [
|
|||
// 'github',
|
||||
'gitlab',
|
||||
// release registries
|
||||
'packagephobia',
|
||||
'crates',
|
||||
'docker',
|
||||
'homebrew',
|
||||
|
|
|
@ -2,6 +2,7 @@ import staticBadge from '../pages/api/static'
|
|||
import github from '../pages/api/github'
|
||||
import npm from '../pages/api/npm'
|
||||
import bundlephobia from '../pages/api/bundlephobia'
|
||||
import packagephobia from '../pages/api/packagephobia'
|
||||
import chromeWebStore from '../pages/api/chrome-web-store'
|
||||
import hackage from '../pages/api/hackage'
|
||||
import pypi from '../pages/api/pypi'
|
||||
|
@ -14,6 +15,7 @@ export default {
|
|||
github: github.meta,
|
||||
npm: npm.meta,
|
||||
bundlephobia: bundlephobia.meta,
|
||||
packagephobia: packagephobia.meta,
|
||||
'chrome-web-store': chromeWebStore.meta,
|
||||
hackage: hackage.meta,
|
||||
pypi: pypi.meta,
|
||||
|
|
|
@ -45,6 +45,7 @@ const nextConfig = {
|
|||
'/github',
|
||||
'/npm',
|
||||
'/bundlephobia',
|
||||
'/packagephobia',
|
||||
'/chrome-web-store',
|
||||
'/hackage',
|
||||
'/ppm',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import got from '../libs/got'
|
||||
import { createBadgenHandler, PathArgs } from '../libs/create-badgen-handler'
|
||||
import got from '../../libs/got'
|
||||
import { createBadgenHandler, PathArgs } from '../../libs/create-badgen-handler-next'
|
||||
|
||||
export default createBadgenHandler({
|
||||
title: 'Packagephobia',
|
|
@ -162,10 +162,6 @@
|
|||
"source": "/opencollective/:match*",
|
||||
"destination": "https://v2022.badgen.net/opencollective/:match*"
|
||||
},
|
||||
{
|
||||
"source": "/packagephobia/:match*",
|
||||
"destination": "https://v2022.badgen.net/packagephobia/:match*"
|
||||
},
|
||||
{
|
||||
"source": "/packagist/:match*",
|
||||
"destination": "https://v2022.badgen.net/packagist/:match*"
|
||||
|
|
Ładowanie…
Reference in New Issue