Skip to content

Commit

Permalink
Rewrite posthog /decide path (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura authored Dec 17, 2024
1 parent 2727d65 commit b3e907a
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion packages/profile/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,27 @@
"value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"
}
]
},
{
"source": "/decide",
"headers": [
{
"key": "Access-Control-Allow-Credentials",
"value": "true"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "GET,OPTIONS,PATCH,DELETE,POST,PUT"
},
{
"key": "Access-Control-Allow-Headers",
"value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"
}
]
}
],
"rewrites": [
Expand All @@ -58,6 +79,10 @@
{
"source": "/ingest/:path*",
"destination": "https://us.i.posthog.com/:path*"
},
{
"source": "/decide",
"destination": "https://us.i.posthog.com/decide"
}
]
}
}

0 comments on commit b3e907a

Please sign in to comment.