-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sponsorkit.config.ts
90 lines (80 loc) · 1.65 KB
/
sponsorkit.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import { fileURLToPath } from 'node:url'
import {
defineConfig,
tierPresets,
type Provider,
type ProviderName,
type Tier
} from 'sponsorkit'
import { SponsorkitRenderOptions } from 'sponsorkit'
import { manualProvider } from './src/providers/manual'
const outputDir = fileURLToPath(new URL('./public', import.meta.url))
const tiers: Tier[] = [
{
title: 'XS (Past Sponsors)',
monthlyDollars: -1,
preset: tierPresets.xs,
},
{
title: 'SM (Backers)',
preset: tierPresets.small,
},
{
title: 'MD (Sponsors)',
monthlyDollars: 4,
preset: tierPresets.medium,
},
{
title: 'LG (Sponsors)',
monthlyDollars: 16,
preset: tierPresets.large,
},
{
title: 'XL (Sponsors)',
monthlyDollars: 32,
preset: tierPresets.xl,
},
]
const providers: (ProviderName | Provider)[] = [
// 'github',
// 'patreon',
manualProvider
]
const renders: SponsorkitRenderOptions[] = [
{
name: 'sponsors',
width: 800,
},
{
name: 'sponsors.wide',
width: 1800,
},
{
name: 'sponsors.circles',
width: 1000,
includePastSponsors: true,
renderer: 'circles',
},
]
export default defineConfig({
tiers,
providers,
renders,
outputDir,
// Replace links and avatars
// replaceLinks: {
// 'https://github.com/antfu': 'https://antfu.me',
// },
// replaceAvatars: {
// ...
// },
// Automatically Merge sponsors from different platforms
sponsorsAutoMerge: true,
// Manually merge sponsors from different platforms
// mergeSponsors: [
// [
// { login: 'patak-dev', provider: 'github' },
// { login: 'patak', provider: 'opencollective' },
// ],
// ],
})