Skip to content

Commit

Permalink
API: custom headers support + noindex,nofollow
Browse files Browse the repository at this point in the history
  • Loading branch information
mskian committed Jan 5, 2024
1 parent 7c24ca4 commit 3f9b66e
Showing 1 changed file with 32 additions and 9 deletions.
41 changes: 32 additions & 9 deletions api/vercel.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,38 @@
{
"version": 2,
"builds": [
{
"src": "./index.py",
"use": "@vercel/python"
}
{
"src": "./index.py",
"use": "@vercel/python"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/"
}
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
],
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
},
{
"key": "x-robots-tag",
"value": "noindex, nofollow"
}
]
}
]
}

1 comment on commit 3f9b66e

@RaviCoderWallah
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is match Id in your api?

Please sign in to comment.