feat: Implement Vercel serverless OG injection

This commit is contained in:
gpt-engineer-app[bot]
2025-10-29 19:35:14 +00:00
parent af8da12c58
commit c85bdcb070
4 changed files with 1475 additions and 71 deletions

View File

@@ -1,8 +1,20 @@
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
"source": "/api/(.*)",
"destination": "/api/$1"
},
{
"source": "/(.*\\.(?:js|css|jpg|jpeg|png|gif|svg|ico|woff|woff2|ttf|eot|webp|json|xml))$",
"continue": true
},
{
"source": "/[^.]+",
"destination": "/api/ssrOG"
},
{
"source": "/",
"destination": "/api/ssrOG"
}
],
"headers": [