mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-17 07:48:21 +01:00
Ok it sorta worked as a redirect, lets try a rewrite again
This commit is contained in:
parent
0715889672
commit
becc986b5b
1 changed files with 11 additions and 5 deletions
16
vercel.json
16
vercel.json
|
@ -2,11 +2,6 @@
|
|||
"public": true,
|
||||
"framework": "hugo",
|
||||
"redirects": [
|
||||
{
|
||||
"source": "/news/(.*)/",
|
||||
|
||||
"destination": "/news/$1/status.ajson"
|
||||
},
|
||||
{
|
||||
"source": "/amp/(.+)/",
|
||||
"destination": "/$1/"
|
||||
|
@ -25,6 +20,17 @@
|
|||
}
|
||||
],
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/news/(.*)/",
|
||||
"has": [
|
||||
{
|
||||
"type": "header",
|
||||
"key": "Accept",
|
||||
"value": "application/activity+json"
|
||||
}
|
||||
],
|
||||
"destination": "/news/$1/status.ajson"
|
||||
},
|
||||
{
|
||||
"source": "/(.+)/$",
|
||||
"destination": "/$1/index.html"
|
||||
|
|
Loading…
Reference in a new issue