Some checks failed
Build and Push Docker Images / docker (push) Failing after 1m58s
This is a major migration from Vite to Next.js 16.0.1 for improved performance, better SEO, and modern React features. ## Next.js Migration Changes - Upgraded to Next.js 16.0.1 with Turbopack (from Vite 6) - Migrated from client-side routing to App Router architecture - Created app/ directory with Next.js page structure - Added server components and client components pattern - Configured standalone Docker builds for production ## Bug Fixes - React Hooks - Fixed infinite loop in Header.tsx scroll behavior (removed lastScrollY state dependency) - Fixed infinite loop in useCalculatorState.ts (wrapped saveState/clearState in useCallback) - Fixed infinite loop in OffsetOrder.tsx (removed savedState from useEffect dependencies) - Removed unused React imports from all client components ## Environment Variable Migration - Migrated all VITE_ variables to NEXT_PUBLIC_ prefix - Updated src/utils/config.ts to use direct static references (required for Next.js) - Updated src/api/checkoutClient.ts, emailClient.ts, aisClient.ts for Next.js env vars - Updated src/vite-env.d.ts types for Next.js environment - Maintained backward compatibility with Docker window.env ## Layout & UX Improvements - Fixed footer to always stay at bottom of viewport using flexbox - Updated app/layout.tsx with flex-1 main content area - Preserved glass morphism effects and luxury styling ## TypeScript & Build - Fixed TypeScript strict mode compilation errors - Removed unused imports and variables - Fixed Axios interceptor types in project/src/api/wrenClient.ts - Production build verified and passing ## Testing & Verification - Tested calculator end-to-end in Playwright - Verified Wren API integration working (11 portfolios fetched) - Confirmed calculation: 5000L → 13.47 tons CO₂ → $3,206 total - All navigation routes working correctly - Footer positioning verified across all pages ## Files Added - app/ directory with Next.js routes - components/ directory with client components - next.config.mjs, next-env.d.ts - ENV_MIGRATION.md, NEXTJS_MIGRATION_COMPLETE.md documentation ## Files Modified - Docker configuration for Next.js standalone builds - package.json dependencies (Next.js, React 19) - ts config.json for Next.js - All API clients for new env var pattern 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
64 lines
1.9 KiB
JSON
64 lines
1.9 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(git pull:*)",
|
|
"mcp__serena__list_dir",
|
|
"Bash(cat:*)",
|
|
"mcp__zen__planner",
|
|
"Bash(git add:*)",
|
|
"Bash(git commit:*)",
|
|
"Bash(git push:*)",
|
|
"mcp__zen__debug",
|
|
"mcp__zen__consensus",
|
|
"mcp__serena__find_symbol",
|
|
"mcp__serena__search_for_pattern",
|
|
"mcp__serena__activate_project",
|
|
"mcp__serena__get_symbols_overview",
|
|
"Bash(npm run dev:*)",
|
|
"mcp__playwright__browser_navigate",
|
|
"mcp__zen__chat",
|
|
"mcp__playwright__browser_click",
|
|
"mcp__playwright__browser_take_screenshot",
|
|
"mcp___21st-dev_magic__21st_magic_component_inspiration",
|
|
"mcp__playwright__browser_snapshot",
|
|
"mcp__zen__thinkdeep",
|
|
"mcp__playwright__browser_type",
|
|
"mcp__playwright__browser_wait_for",
|
|
"mcp__playwright__browser_evaluate",
|
|
"mcp__playwright__browser_resize",
|
|
"mcp__playwright__browser_navigate_back",
|
|
"mcp__serena__find_file",
|
|
"mcp__playwright__browser_network_requests",
|
|
"mcp__playwright__browser_console_messages",
|
|
"Bash(npm run build:*)",
|
|
"Bash(git log:*)",
|
|
"Bash(git restore:*)",
|
|
"Bash(grep:*)",
|
|
"Bash(test:*)",
|
|
"mcp__zen__codereview",
|
|
"Bash(git rm:*)",
|
|
"Bash(node -c:*)",
|
|
"Bash(nslookup:*)",
|
|
"Bash(curl:*)",
|
|
"mcp__context7__resolve-library-id",
|
|
"mcp__context7__get-library-docs",
|
|
"Bash(npm install:*)",
|
|
"Bash(node index.js:*)",
|
|
"mcp__zen__analyze",
|
|
"Bash(npm uninstall:*)",
|
|
"Bash(timeout 5 echo:*)",
|
|
"mcp__playwright__browser_close",
|
|
"Bash(pkill:*)",
|
|
"Bash(taskkill:*)",
|
|
"Bash(powershell -Command \"Get-Process node -ErrorAction SilentlyContinue | Stop-Process -Force\")",
|
|
"Bash(nul)",
|
|
"Bash(timeout 120 npm run build:*)",
|
|
"Bash(dir:*)",
|
|
"Bash(git reset:*)",
|
|
"Bash(.gitignore)"
|
|
],
|
|
"deny": [],
|
|
"ask": []
|
|
}
|
|
}
|