fix: serve static files from public/ before server.js catch-all

- 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
This commit is contained in:
Sʜɪɴᴇɪ Nᴏᴜᴢᴇɴ
2026-06-08 18:03:47 +05:30
parent 09c3d456c9
commit 3e50ec1ab9
+5 -1
View File
@@ -8,11 +8,15 @@
],
"routes": [
{
"src": "/(.*)",
"src": "/api/(.*)",
"dest": "server.js",
"headers": {
"Access-Control-Allow-Origin": "*"
}
},
{
"src": "/(.*)",
"dest": "/public/$1"
}
]
}