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); }