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