quote-api / vercel.json
ilhamdev's picture
feat: redesign to neubrutalism UI and secure Hugging Face Space from rate/resource limits
f6522be
Raw History Blame Contribute Delete
1.55 kB
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"installCommand": "npm --prefix frontend install",
"buildCommand": "npm --prefix frontend run build",
"outputDirectory": "frontend/dist",
"rewrites": [
{
"source": "/generate",
"destination": "https://ilhamdev-quote-api.hf.space/"
},
{
"source": "/status",
"destination": "https://ilhamdev-quote-api.hf.space/status"
},
{
"source": "/api/generate",
"destination": "https://ilhamdev-quote-api.hf.space/"
},
{
"source": "/api/status",
"destination": "https://ilhamdev-quote-api.hf.space/status"
},
{
"source": "/api",
"destination": "https://ilhamdev-quote-api.hf.space/"
},
{
"source": "/api/:path*",
"destination": "https://ilhamdev-quote-api.hf.space/:path*"
}
],
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "GET, POST, OPTIONS"
},
{
"key": "Access-Control-Allow-Headers",
"value": "Content-Type, Authorization, X-Requested-With"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
}
]
}
]
}