fix: fingerprint the deployed entry asset
This commit is contained in:
@@ -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`);
|
||||
Reference in New Issue
Block a user