import { readFileSync, existsSync } from 'node:fs'; const required = ['app.js','app.json','pages/index/index.xhsml','pages/test/test.js','pages/result/result.js','assets/test-covers/rice.jpg','vendor/poster-editor.cjs','web/package.json','web/next.config.mjs','web/app/page.jsx','web/app/api/[...path]/route.js','web/components/RiceArena.jsx','web/components/RicePosterEditor.jsx']; for (const file of required) if (!existsSync(file)) throw new Error(`Missing ${file}`); JSON.parse(readFileSync('app.json','utf8')); if (!readFileSync('web/next.config.mjs','utf8').includes("output: 'standalone'")) throw new Error('Next.js standalone output is required'); console.log(`Static checks passed (${required.length} required files).`);