Download vercel.json from ilhamdev/quote-api: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/spaces/ilhamdev/quote-api/resolve/main/vercel.json
- Command line
-
hf download hf://spaces/ilhamdev/quote-api/vercel.json
-
curl -L -o vercel.json https://huggingface.co/spaces/ilhamdev/quote-api/resolve/main/vercel.json
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" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |