import json from pathlib import Path 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", ] missing = [name for name in required if not Path(name).is_file()] if missing: raise SystemExit("Missing required files: " + ", ".join(missing)) json.loads(Path("app.json").read_text()) if "output: 'standalone'" not in Path("web/next.config.mjs").read_text(): raise SystemExit("Next.js standalone output is required") print(f"Static checks passed ({len(required)} required files).")