fix(images): ship Linux codecs and preserve original-image fallback
Vendor the locked sharp Linux runtime and verify it during Docker builds. Add complete image response lengths and persistent frontend fallbacks, with real-codec HTTP and isolated release regression tests. Refresh tested API, admin and customer release artifacts. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
// Keep output stable whether invoked from the workspace or API directory.
|
||||
absWorkingDir: __dirname,
|
||||
entryPoints: [path.join(__dirname, 'dist/main.js')],
|
||||
outfile: path.join(__dirname, 'release/app.js'),
|
||||
bundle: true,
|
||||
@@ -16,7 +18,7 @@ module.exports = {
|
||||
external: [
|
||||
'@prisma/client',
|
||||
'.prisma/client',
|
||||
// Native image library, loaded lazily by ImageVariantService; absent = no resizing.
|
||||
// Native image library; bundle-release.cjs ships its locked Linux runtime in vendor/.
|
||||
'sharp',
|
||||
'@nestjs/microservices',
|
||||
'@nestjs/microservices/*',
|
||||
|
||||
Reference in New Issue
Block a user