- Add canvas as optional dependency in package.json - Install canvas system dependencies in Dockerfile (cairo, pango, etc.) - Initialize canvas in psd-processor with fallback support - Add detailed logging for PSD processing - Support both composite image data and thumbnail fallback - Canvas will be available in Docker environment but optional locally
49 lines
1.2 KiB
JSON
49 lines
1.2 KiB
JSON
{
|
|
"name": "youyidian-3d-material",
|
|
"version": "1.0.0",
|
|
"description": "由壹点3D素材分享平台",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "prisma generate && next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"prisma:generate": "prisma generate",
|
|
"prisma:push": "prisma db push",
|
|
"prisma:studio": "prisma studio"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.645.0",
|
|
"@aws-sdk/s3-request-presigner": "^3.645.0",
|
|
"@prisma/client": "^5.19.0",
|
|
"ag-psd": "^28.4.1",
|
|
"bcryptjs": "^2.4.3",
|
|
"clsx": "^2.1.0",
|
|
"date-fns": "^3.6.0",
|
|
"formidable": "^3.5.1",
|
|
"next": "^14.2.0",
|
|
"next-auth": "^4.24.0",
|
|
"react": "^18.3.0",
|
|
"react-dom": "^18.3.0",
|
|
"sharp": "^0.34.4",
|
|
"zod": "^3.23.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/formidable": "^3.4.5",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "^18.3.0",
|
|
"@types/react-dom": "^18.3.0",
|
|
"autoprefixer": "^10.4.20",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-next": "^14.2.0",
|
|
"postcss": "^8.4.47",
|
|
"prisma": "^5.19.0",
|
|
"tailwindcss": "^3.4.0",
|
|
"typescript": "^5.5.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"canvas": "^2.11.2"
|
|
}
|
|
}
|