fix worker not found module in build standalone
All checks were successful
Deploy eCourt Note Web to Server / Validate Database Schema (Drizzle) (push) Successful in 3s
Deploy eCourt Note Web to Server / Build Web Docker Image (push) Successful in 1m19s
Deploy eCourt Note Web to Server / Deploy eCourt Note Web to Server (push) Successful in 5s
Deploy eCourt Note Web to Server / Notify Deployment Status (push) Successful in 0s

fix next/link prefetch/call twice(replace with a)
This commit is contained in:
oom 2026-11-04 00:33:07 +07:00
parent 2486b6e434
commit 2e951f99f4
4 changed files with 57 additions and 30 deletions

View file

@ -34,7 +34,21 @@ const nextConfig = {
];
},
experimental: {
serverComponentsExternalPackages: ['piscina']
serverComponentsExternalPackages: ['piscina'],
outputFileTracingIncludes: {
// ปรับ Path ฝั่งซ้ายให้ตรงกับ API Route หรือจุดที่เรียกใช้ Piscina
'/api/**/*': [
'node_modules/piscina/**/*',
'node_modules/pizzip/**/*',
'node_modules/@xmldom/xmldom/**/*',
'node_modules/xpath/**/*',
'node_modules/docx-templates/**/*',
'node_modules/jszip/**/*',
'node_modules/setimmediate/**/*',
'node_modules/pako/**/*',
'workers/**/*' // Path ที่เก็บไฟล์ worker.js ของคุณ (ปรับตามจริง)
],
},
}
};