Files
2026-11-10 10:12:09 +09:00

18 lines
772 B
JavaScript

import { execSync } from 'child_process';
process.env.PRERENDER_LIMIT = '800';
console.log('🚀 [Build Under 1000] 파일 개수 1,000개 미만 안전 빌드 시작 (최대 800개 페이지)...');
try {
execSync('npm run sitemap', { stdio: 'inherit' });
execSync('npm run build:client', { stdio: 'inherit' });
execSync('npm run build:server', { stdio: 'inherit' });
execSync('node scripts/prerender.js', { stdio: 'inherit', env: { ...process.env, PRERENDER_LIMIT: '800' } });
execSync('node scripts/post-build.js', { stdio: 'inherit' });
console.log('🎉 [Success] 1,000개 미만 빌드가 완료되었습니다! 이제 바로 업로드 가능합니다.');
} catch (error) {
console.error('❌ 빌드 중 오류 발생:', error);
process.exit(1);
}