fix: fingerprint the deployed entry asset

This commit is contained in:
2026-09-15 15:24:19 +03:00
parent 4d191a07b1
commit 0bbfed321a
3 changed files with 13 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
import path from 'node:path';
import { frontendAssetInfo } from '../server/release-info.mjs';
const asset = frontendAssetInfo([path.resolve(process.cwd(), 'dist')]);
if (!asset) {
console.error('dist/index.html içinde yüklenen frontend JavaScript asset’i bulunamadı. Önce npm run build çalıştırın.');
process.exit(1);
}
process.stdout.write(`${asset.sha256}\n`);