From 26469d72b86bdcabf85bd0e0e43e8d0cb51e3c32 Mon Sep 17 00:00:00 2001 From: LY <51789698+Young-Lord@users.noreply.github.com> Date: Sun, 6 Oct 2024 14:57:03 +0800 Subject: [PATCH] fix vercel build --- package.json | 2 +- vercel.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 63fd838..efcc346 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,6 @@ "name": "online-clipboard-vercel-build", "private": true, "scripts": { - "build": "mkdir -p dist && cd server && pip3 install poetry-plugin-export poetry && python3 -m poetry add psycopg2-binary^2.9.9 && python3 -m poetry export -f requirements.txt --output requirements.txt && pip3 uninstall -y poetry-plugin-export poetry && mv requirements.txt .. && cd .. && mkdir -p dist && cd frontend && yarn install && yarn build && cd .. && rm -rf frontend && cp -r server/app/templates/* dist" + "build": "mkdir -p dist && cd server && pip3 install poetry-plugin-export poetry && python3 -m poetry add psycopg2-binary^2.9.9 && python3 -m poetry export -f requirements.txt --output requirements.txt && mv requirements.txt .. && cd .. && mkdir -p dist && cd frontend && yarn install && yarn build && cd .. && rm -rf frontend && cp -r server/app/templates/* dist && pip3 uninstall -y poetry-plugin-export poetry" } } \ No newline at end of file diff --git a/vercel.json b/vercel.json index 3393e5f..c035d01 100644 --- a/vercel.json +++ b/vercel.json @@ -25,4 +25,4 @@ "env": { "PYTHONPATH": "server/" } -} \ No newline at end of file +}