From 7185111cb58b572ed4ec498a1f8a5975f439d4e4 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Fri, 12 Apr 2024 16:41:10 +0800 Subject: [PATCH] fix pack --- package.json | 4 ++-- start.sh | 13 +++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5a276a669..b7026972f 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@hello-pangea/dnd": "^16.5.0", "@next-auth/prisma-adapter": "^1.0.7", "@next/third-parties": "^14.1.0", - "@prisma/client": "5.11.0", + "@prisma/client": "5.12.1", "@svgr/webpack": "^8.1.0", "@vercel/analytics": "^1.1.2", "@vercel/speed-insights": "^1.0.9", @@ -80,7 +80,7 @@ "postcss": "^8.4.33", "prettier": "^3.2.4", "prettier-plugin-tailwindcss": "^0.5.11", - "prisma": "^5.11.0", + "prisma": "^5.12.1", "tailwindcss": "^3.4.1", "tailwindcss-animate": "^1.0.7", "typescript": "^5.3.3", diff --git a/start.sh b/start.sh index 6a62b055e..dd738647c 100755 --- a/start.sh +++ b/start.sh @@ -1,11 +1,16 @@ #!/bin/bash -yarn config set registry 'https://registry.npmmirror.com/' -yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp" -yarn config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips" +# 加速 +#yarn config set registry 'https://registry.npmmirror.com/' +#yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp" +#yarn config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips" +# 官方 +yarn config delete registry +yarn config delete sharp_binary_host +yarn config delete sharp_libvips_binary_host #yarn cache clean -yes | yarn install +yarn install yarn run build mkdir -p "./node_modules/tiktoken"