mirror of
https://github.com/linshenkx/prompt-optimizer.git
synced 2026-05-30 19:19:37 +08:00
31 lines
800 B
JSON
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"
|
|
}
|
|
}
|
|
}
|