Files
prompt-optimizer/vercel.json
2026-05-19 23:48:05 +08:00

31 lines
800 B
JSON

{
"$schema": "https://openapi.vercel.sh/vercel.json",
"buildCommand": "if [[ $(pwd) == */packages/extension ]]; then cd ../.. && pnpm build && mkdir -p packages/extension/packages/web && cp -r packages/web/dist packages/extension/packages/web/dist; else pnpm build; fi",
"outputDirectory": "packages/web/dist",
"installCommand": "pwd && if [[ $(pwd) == */packages/extension ]]; then cd ../..; fi && pnpm install",
"rewrites": [
{
"source": "/api/:path*",
"destination": "/api/:path*"
},
{
"source": "/(.*)",
"destination": "/index.html"
}
],
"github": {
"silent": true
},
"git": {
"deploymentEnabled": {
"main": true,
"master": true
}
},
"build": {
"env": {
"VITE_VERCEL_DEPLOYMENT": "true"
}
}
}