coderrrrr.site/vercel.json
2025-02-09 17:18:56 +00:00

75 lines
1.5 KiB
JSON

{
"functions": {
"api/**/*": {
"maxDuration": 60
}
},
"crons": [{
"path": "/api/activitypub/sendNote.ts",
"schedule": "0 0 * * *"
}],
"redirects": [
{
"source": "/amp/(.+)/",
"destination": "/$1/"
},
{
"source": "/(\\d+)/(\\d+)/(.+).html",
"destination": "/$3/"
}
],
"rewrites": [
{
"source": "/(.+)/$",
"destination": "/$1/index.html"
},
{
"source": "/.well-known/(.*)",
"destination": "/api/well-known/$1"
},
{
"source": "/authorize_interaction",
"destination": "/api/activitypub/authorize_interaction.ts"
},
{
"source": "/@blog",
"destination": "/api/activitypub/actor.ts"
},
{
"source": "/coder",
"destination": "/api/activitypub/old.ts"
},
{
"source": "/followers",
"destination": "/api/activitypub/followers.ts"
},
{
"source": "/following",
"destination": "/api/activitypub/following.ts"
},
{
"source": "/inbox",
"destination": "/api/activitypub/inbox.ts"
},
{
"source": "/sharedInbox",
"destination": "/api/activitypub/sharedInbox.ts"
},
{
"source": "/outbox",
"destination": "/api/activitypub/outbox.ts"
}
],
"headers": [
{
"source": "/(.*).json",
"headers": [
{
"key": "content-type",
"value": "application/activity+json"
}
]
}
]
}