Introduces adapters for Vercel, Netlify Edge, Deno Deploy, and Cloudflare Pages, each with platform-specific entry points and configuration files. Adds a GitHub Actions CI workflow for linting, type checking, and testing. Updates lint scripts to include adapters, improves type annotations in src/index.js, and fixes a type assertion in security tests.
23 lines
356 B
JSON
23 lines
356 B
JSON
{
|
|
"$schema": "https://openapi.vercel.sh/vercel.json",
|
|
"name": "xget",
|
|
"version": 2,
|
|
"rewrites": [
|
|
{
|
|
"source": "/(.*)",
|
|
"destination": "/api/index.js"
|
|
}
|
|
],
|
|
"headers": [
|
|
{
|
|
"source": "/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "X-Powered-By",
|
|
"value": "Xget/Vercel"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|