@echo off REM Windows构建脚本 REM 设置工作目录 if not defined COZE_WORKSPACE_PATH set COZE_WORKSPACE_PATH=%cd% cd /d "%COZE_WORKSPACE_PATH%" echo Installing dependencies... pnpm install --prefer-frozen-lockfile --prefer-offline echo Building the Next.js project... pnpm next build echo Bundling server with tsup... pnpm tsup src/server.ts --format cjs --platform node --target node20 --outDir dist --no-splitting --no-minify echo Build completed successfully!