mirror of
https://github.com/Shineii86/AniKotoAPI.git
synced 2026-10-22 02:45:10 +00:00
- API routes (/api/*) still go to server.js - All other routes serve from /public/ directory - Fixes privacy.html, tos.html, manifest.json, robots.txt, sitemap.xml, og-image.svg
22 lines
319 B
JSON
22 lines
319 B
JSON
{
|
|
"version": 2,
|
|
"builds": [
|
|
{
|
|
"src": "server.js",
|
|
"use": "@vercel/node"
|
|
}
|
|
],
|
|
"routes": [
|
|
{
|
|
"src": "/api/(.*)",
|
|
"dest": "server.js",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": "*"
|
|
}
|
|
},
|
|
{
|
|
"src": "/(.*)",
|
|
"dest": "/public/$1"
|
|
}
|
|
]
|
|
} |