fedipage/vercel.json

97 lines
1.9 KiB
JSON
Raw Normal View History

2023-10-08 07:35:17 +02:00
{
"public": true,
"framework": "hugo",
"redirects": [
{
"source": "/amp/(.+)/",
"destination": "/$1/"
},
{
"source": "/(\\d+)/(\\d+)/(.+).html",
"destination": "/$3/"
},
{
"source": "/atom.xml",
"destination": "/index.xml"
},
{
"source": "/activitypub-support-added/",
"destination": "/news/activitypub-support-added/"
}
],
"rewrites": [
{
"source": "/([^/]*)/(.*)/",
"has": [
{
"type": "header",
"key": "Accept",
2023-10-13 21:51:02 +02:00
"value": "application/json"
}
],
"destination": "/$1/$2/status.ajson"
},
{
"source": "/([^/]*)/(.*)/activity",
"destination": "/$1/$2/activity.ajson"
},
2023-10-08 07:35:17 +02:00
{
"source": "/.well-known/(.*)",
"destination": "/api/well-known/$1"
},
{
"source": "/nodeinfo/2.1",
"destination": "/api/nodeinfo/2.1.ts"
},
{
"source": "/authorize_interaction",
"destination": "/api/activitypub/authorize_interaction.ts"
},
{
2023-10-11 07:08:12 +02:00
"source": "/fedipage",
2023-10-08 07:35:17 +02:00
"destination": "/api/activitypub/actor.js"
},
{
"source": "/followers",
"destination": "/api/activitypub/followers.js"
},
{
"source": "/following",
"destination": "/api/activitypub/following.js"
},
{
"source": "/inbox",
"destination": "/api/activitypub/inbox.js"
},
{
"source": "/outbox",
"destination": "/api/activitypub/outbox.js"
},
{
"source": "/send-note",
"destination": "/api/activitypub/sendNote.js"
}
],
"functions": {
2023-10-09 17:19:40 +02:00
"**/*": {
"maxDuration": 300
2023-10-09 17:02:50 +02:00
}
2023-10-09 16:48:49 +02:00
},
2023-10-08 07:35:17 +02:00
"headers": [
{
"source": "/(.*).ajson",
"headers": [
{
"key": "content-type",
"value": "application/activity+json"
}
]
}
],
"crons": [{
"path": "/send-note",
"schedule": "*/5 * * * *"
}]
}