feat: Add VITE_DEV_PROXY configuration for npm registry API proxy
All checks were successful
CI / cache-and-install (push) Successful in 2m6s

This commit is contained in:
严浩
2024-09-18 13:35:17 +08:00
parent ee3d5186ff
commit 5422f68b45
5 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,6 @@
{
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
"rewrites": [
{ "source": "/(.*)", "destination": "/index.html" },
{ "source": "/npm-registry-api/(.*)", "destination": "https://npm-cf-proxy.oo1.dev/$1" }
]
}