Commit Graph

3 Commits

Author SHA1 Message Date
Leon van Zyl
a3a151c67a feat: comprehensive boilerplate improvements
Security & Stability:
- Add Next.js 16 proxy.ts for BetterAuth cookie-based auth protection
- Add rate limiting for API routes (src/lib/rate-limit.ts)
- Add Zod validation for chat API request bodies
- Add session auth check to chat and diagnostics endpoints
- Add security headers in next.config.ts (CSP, X-Frame-Options, etc.)
- Add file upload validation and sanitization in storage.ts

Core UX Components:
- Add error boundaries (error.tsx, not-found.tsx, chat/error.tsx)
- Add loading states (skeleton.tsx, spinner.tsx, loading.tsx files)
- Add toast notifications with Sonner
- Add form components (input.tsx, textarea.tsx, label.tsx)
- Add database indexes for performance (schema.ts)
- Enhance chat UX: timestamps, copy-to-clipboard, thinking indicator,
  error display, localStorage message persistence

Polish & Accessibility:
- Add Open Graph and Twitter card metadata
- Add JSON-LD structured data for SEO
- Add sitemap.ts, robots.ts, manifest.ts
- Add skip-to-content link and ARIA labels in site-header
- Enable profile page quick action buttons with dialogs
- Update Next.js 15 references to Next.js 16

Developer Experience:
- Add GitHub Actions CI workflow (lint, typecheck, build)
- Add Prettier configuration (.prettierrc, .prettierignore)
- Add .nvmrc pinning Node 20
- Add ESLint rules: import/order, react-hooks/exhaustive-deps
- Add stricter TypeScript settings (exactOptionalPropertyTypes,
  noImplicitOverride)
- Add interactive setup script (scripts/setup.ts)
- Add session utility functions (src/lib/session.ts)

All changes mirrored to create-agentic-app/template/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 14:46:15 +02:00
Leon van Zyl
9224b0a44e chore: upgrade Next.js 15.4.6 to 16.0.3 with full stack updates
Successfully upgraded the project from Next.js 15 to Next.js 16 stable release
with all related dependencies and configuration updates.

## Package Upgrades
- Next.js: 15.4.6 → 16.0.3
- React: 19.1.0 → 19.2.0
- React DOM: 19.1.0 → 19.2.0
- @types/react: 19.2.2 → 19.2.5
- @types/react-dom: 19.2.2 → 19.2.3
- eslint-config-next: 15.4.6 → 16.0.3

## Configuration Changes
- Removed --turbopack flag from dev script (now default in Next.js 16)
- Updated lint script from 'next lint' to 'eslint .' for better compatibility
- Migrated ESLint config from FlatCompat to native flat config format
- Removed @eslint/eslintrc dependency (no longer needed)
- Added pnpm overrides for React type definitions

## ESLint Configuration
- Converted from FlatCompat compatibility layer to direct import
- Now using eslint-config-next/core-web-vitals directly
- Added ignores for .next, node_modules, .cache, dist, and build directories
- Simplified configuration structure for better maintainability

## TypeScript Configuration
- Auto-updated by Next.js 16 build process
- Changed jsx from 'preserve' to 'react-jsx' (React automatic runtime)
- Added '.next/dev/types/**/*.ts' to include paths

## MCP Configuration
- Removed unused context7 MCP server configuration
- Updated next-devtools command to use direct npx instead of cmd wrapper

## Verification
- Build:  Successful (compiled in 2.8s with Turbopack)
- Lint:  No errors or warnings
- TypeScript:  Type checking passed
- Browser:  App loads and runs correctly

This upgrade brings all the latest Next.js 16 features and improvements
including Turbopack as the default bundler, improved build performance,
and enhanced developer experience.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 09:04:14 +02:00
Leon van Zyl
2af182a3a8 Initial commit from Create Next App 2025-08-11 12:18:11 +02:00