kopia lustrzana https://github.com/badgen/badgen.net
feat: migrate /https
rodzic
e4907e86c4
commit
a46cedb447
|
|
@ -56,7 +56,6 @@ export const liveBadgeList = [
|
||||||
'tidelift',
|
'tidelift',
|
||||||
'jenkins',
|
'jenkins',
|
||||||
'liberapay',
|
'liberapay',
|
||||||
'https',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
export async function loadBadgeMeta () {
|
export async function loadBadgeMeta () {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import staticBadge from '../pages/api/static'
|
import staticBadge from '../pages/api/static'
|
||||||
import github from '../pages/api/github'
|
import github from '../pages/api/github'
|
||||||
import gitlab from '../pages/api/gitlab'
|
import gitlab from '../pages/api/gitlab'
|
||||||
|
import https from '../pages/api/https'
|
||||||
import amo from '../pages/api/amo'
|
import amo from '../pages/api/amo'
|
||||||
import npm from '../pages/api/npm'
|
import npm from '../pages/api/npm'
|
||||||
import crates from '../pages/api/crates'
|
import crates from '../pages/api/crates'
|
||||||
|
|
@ -24,6 +25,7 @@ export default {
|
||||||
static: staticBadge.meta,
|
static: staticBadge.meta,
|
||||||
github: github.meta,
|
github: github.meta,
|
||||||
gitlab: gitlab.meta,
|
gitlab: gitlab.meta,
|
||||||
|
https: https.meta,
|
||||||
amo: amo.meta,
|
amo: amo.meta,
|
||||||
npm: npm.meta,
|
npm: npm.meta,
|
||||||
crates: crates.meta,
|
crates: crates.meta,
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ const nextConfig = {
|
||||||
'/static',
|
'/static',
|
||||||
'/github',
|
'/github',
|
||||||
'/gitlab',
|
'/gitlab',
|
||||||
|
'/https',
|
||||||
// registry
|
// registry
|
||||||
'/amo',
|
'/amo',
|
||||||
'/npm',
|
'/npm',
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
||||||
const help = `
|
const help = `
|
||||||
## Use Badgen with HTTPS Endpoint
|
## Use Badgen with HTTPS Endpoint
|
||||||
|
|
@ -82,10 +82,6 @@
|
||||||
"source": "/homebrew/:match*",
|
"source": "/homebrew/:match*",
|
||||||
"destination": "https://v2022.badgen.net/homebrew/:match*"
|
"destination": "https://v2022.badgen.net/homebrew/:match*"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"source": "/https/:match*",
|
|
||||||
"destination": "https://v2022.badgen.net/https/:match*"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"source": "/jenkins/:match*",
|
"source": "/jenkins/:match*",
|
||||||
"destination": "https://v2022.badgen.net/jenkins/:match*"
|
"destination": "https://v2022.badgen.net/jenkins/:match*"
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue