Fix potential LXC MODULE_NOT_FOUND by pinning next/prisma and cleanup

This commit is contained in:
mARTin 2026-03-13 12:42:24 +01:00
parent 340e54672b
commit 4b0b23c024
2 changed files with 6 additions and 5 deletions

View File

@ -27,7 +27,7 @@
"@fortawesome/free-solid-svg-icons": "^7.2.0",
"@fortawesome/react-fontawesome": "^3.2.0",
"@next-auth/prisma-adapter": "^1.0.7",
"@prisma/client": "^5.22.0",
"@prisma/client": "5.22.0",
"@tiptap/extension-link": "^3.20.0",
"@tiptap/extension-placeholder": "^3.20.0",
"@tiptap/extension-underline": "^3.20.0",
@ -40,17 +40,16 @@
"googleapis": "^170.1.0",
"ical.js": "^2.2.1",
"lucide-react": "^0.563.0",
"next": "^14.0.0",
"next": "14.2.35",
"next-auth": "^4.24.13",
"nodemailer": "^7.0.13",
"postcss-cli": "^11.0.1",
"prisma": "^5.0.0",
"prisma": "5.22.0",
"react": "^18.2.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.2.0",
"tsdav": "^2.1.8",
"undici": "^7.19.1",
"zustand": "^4.4.0"
},
"devDependencies": {

View File

@ -19,7 +19,8 @@ git reset --hard origin/main # Force-sync, ignores any local changes
echo -e " Version: $(node -p "require('./package.json').version")"
echo -e "${YELLOW}[2/6] Installing dependencies...${NC}"
npm install
rm -rf node_modules
npm ci
echo -e "${YELLOW}[3/6] Running database migrations...${NC}"
npx prisma migrate deploy || {
@ -29,6 +30,7 @@ npx prisma migrate deploy || {
npx prisma generate
echo -e "${YELLOW}[4/6] Building application...${NC}"
rm -rf .next
npm run build
echo -e "${YELLOW}[5/6] Copying static assets to standalone...${NC}"