Change default NIP-95 endpoint to void.cat as nostr.build returns 405
This commit is contained in:
parent
35d4a94bb4
commit
17aa64070e
@ -40,24 +40,31 @@ export const DEFAULT_RELAYS: RelayConfig[] = [
|
||||
|
||||
export const DEFAULT_NIP95_APIS: Nip95Config[] = [
|
||||
{
|
||||
id: 'default',
|
||||
url: 'https://nostr.build/api/v2/upload',
|
||||
id: 'voidcat',
|
||||
url: 'https://void.cat/upload',
|
||||
enabled: true,
|
||||
priority: 1,
|
||||
createdAt: Date.now(),
|
||||
},
|
||||
{
|
||||
id: 'nostrbuild',
|
||||
url: 'https://nostr.build/api/v2/upload',
|
||||
enabled: false,
|
||||
priority: 2,
|
||||
createdAt: Date.now(),
|
||||
},
|
||||
{
|
||||
id: 'picstr',
|
||||
url: 'https://picstr.build/api/v1/upload',
|
||||
enabled: false,
|
||||
priority: 2,
|
||||
priority: 3,
|
||||
createdAt: Date.now(),
|
||||
},
|
||||
{
|
||||
id: 'nostrcheck',
|
||||
url: 'https://nostrcheck.me/api/v1/media',
|
||||
enabled: false,
|
||||
priority: 3,
|
||||
priority: 4,
|
||||
createdAt: Date.now(),
|
||||
},
|
||||
]
|
||||
|
||||
@ -23,7 +23,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
}
|
||||
|
||||
// Get target endpoint from query or use default
|
||||
const targetEndpoint = (req.query.endpoint as string) || 'https://nostr.build/api/v2/upload'
|
||||
const targetEndpoint = (req.query.endpoint as string) || 'https://void.cat/upload'
|
||||
|
||||
try {
|
||||
// Parse multipart form data
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user