kopia lustrzana https://github.com/badgen/badgen.net
feat: migrate /amo
rodzic
4a0c8e4c67
commit
8c87249328
|
@ -11,7 +11,6 @@ export const liveBadgeList = [
|
|||
// release registries
|
||||
'docker',
|
||||
'homebrew',
|
||||
'amo',
|
||||
'nuget',
|
||||
'packagist',
|
||||
'rubygems',
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import staticBadge from '../pages/api/static'
|
||||
import github from '../pages/api/github'
|
||||
import amo from '../pages/api/amo'
|
||||
import npm from '../pages/api/npm'
|
||||
import crates from '../pages/api/crates'
|
||||
import bundlephobia from '../pages/api/bundlephobia'
|
||||
|
@ -17,6 +18,7 @@ import xo from '../pages/api/xo'
|
|||
export default {
|
||||
static: staticBadge.meta,
|
||||
github: github.meta,
|
||||
amo: amo.meta,
|
||||
npm: npm.meta,
|
||||
crates: crates.meta,
|
||||
bundlephobia: bundlephobia.meta,
|
||||
|
|
|
@ -43,6 +43,7 @@ const nextConfig = {
|
|||
const badgeApis = [
|
||||
'/static',
|
||||
'/github',
|
||||
'/amo',
|
||||
'/npm',
|
||||
'/crates',
|
||||
'/bundlephobia',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import got from '../libs/got'
|
||||
import { millify, stars, version, versionColor } from '../libs/utils'
|
||||
import { createBadgenHandler, PathArgs } from '../libs/create-badgen-handler'
|
||||
import got from '../../libs/got'
|
||||
import { millify, stars, version, versionColor } from '../../libs/utils'
|
||||
import { createBadgenHandler, PathArgs } from '../../libs/create-badgen-handler-next'
|
||||
|
||||
export default createBadgenHandler({
|
||||
title: 'Mozilla Add-on',
|
|
@ -2,10 +2,6 @@
|
|||
"version": 2,
|
||||
"regions": ["all"],
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/amo/:match*",
|
||||
"destination": "https://v2022.badgen.net/amo/:match*"
|
||||
},
|
||||
{
|
||||
"source": "/appveyor/:match*",
|
||||
"destination": "https://v2022.badgen.net/appveyor/:match*"
|
||||
|
|
Ładowanie…
Reference in New Issue