2.5 KiB
2.5 KiB
Sanctum App - Project Structure
Overview
Next.js 15 application bootstrapped with OpenNext for Cloudflare Workers deployment. Currently in initial setup phase with default Next.js starter template.
Project Root Files
- README.md - OpenNext starter documentation and deployment instructions
- package.json - Project dependencies including Next.js, OpenNext Cloudflare adapter, shadcn/ui components
- pnpm-lock.yaml - PNPM dependency lock file
- components.json - shadcn/ui component configuration
- tsconfig.json - TypeScript compiler configuration
- cloudflare-env.d.ts - Cloudflare environment type definitions
- .gitignore - Git ignore patterns for build artifacts and dependencies
- .dev.vars.example - Example environment variables template
- .dev.vars - Local development environment variables (not tracked)
Application Source
src/app/
- layout.tsx - Root layout component with Geist font configuration
- page.tsx - Homepage component with Next.js default landing page
src/lib/
- utils.ts - Utility functions including Tailwind class merging helpers
Configuration
.vscode/
- settings.json - VS Code workspace settings
Build Output
- .next/ - Next.js build output directory (ignored by git)
- Contains compiled application, cache, and server bundles
- Includes standalone build for Cloudflare Workers deployment
Technology Stack
Framework: Next.js 15.5.7 with App Router Runtime: React 19.1.2 Deployment: OpenNext Cloudflare adapter for Workers Styling: Tailwind CSS 4.x with PostCSS UI Components: shadcn/ui with class-variance-authority, clsx, lucide-react Language: TypeScript 5.x Package Manager: PNPM Development: Turbopack for fast dev server
Available Scripts
pnpm dev- Start Next.js development server with Turbopackpnpm build- Build Next.js applicationpnpm start- Start production Next.js serverpnpm lint- Run ESLint code quality checkspnpm deploy- Build and deploy to Cloudflare Workerspnpm upload- Build and upload to Cloudflare (no deployment)pnpm preview- Build and preview locally on Cloudflare runtimepnpm cf-typegen- Generate Cloudflare environment TypeScript types