try with Vercel build cache 4
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||
"buildCommand": "cd ../../ && rm -rf ./apps/deployment && rm -rf ./apps/backend/node_modules && pnpm --filter ./apps/backend/ --legacy deploy ./apps/deployment/ && mv ./apps/deployment/node_modules/ ./apps/backend/node_modules/ && ./vercel-preparation.sh",
|
||||
"buildCommand": "cd ../../ && git clean ./apps -fx && pnpm --filter ./apps/backend/ --legacy deploy ./apps/deployment/ && mv ./apps/deployment/node_modules/ ./apps/backend/node_modules/ && ./vercel-preparation.sh",
|
||||
"redirects": [
|
||||
{
|
||||
"source": "/",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||
"installCommand": "cd ../../ && rm -rf ./apps/deployment && pnpm install && rm -rf ./apps/frontend/node_modules && ./vercel-preparation.sh && pnpm --filter ./apps/frontend/ --legacy deploy ./apps/deployment/ && mv ./apps/deployment/node_modules/ ./apps/frontend/node_modules/",
|
||||
"installCommand": "cd ../../ && git clean ./apps -fx && pnpm install && rm -rf ./apps/frontend/node_modules && ./vercel-preparation.sh && pnpm --filter ./apps/frontend/ --legacy deploy ./apps/deployment/ && mv ./apps/deployment/node_modules/ ./apps/frontend/node_modules/",
|
||||
"buildCommand": "pnpm run build",
|
||||
"outputDirectory": "build"
|
||||
}
|
||||
|
||||
@@ -6,8 +6,6 @@ set -euo pipefail
|
||||
# move into the folder of this script
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
git clean ./apps -fx
|
||||
|
||||
mkdir -p apps/backend/.vercel/output/functions/api.func/
|
||||
# copying `backend` to `backend/.vercel/...` directly may cause problems
|
||||
cp -RP apps/backend/. apps/backend-copy/
|
||||
|
||||
Reference in New Issue
Block a user