Local Development Guide
Running Locally
Standard Vite Development Server
pnpm devWrangler Development Server
pnpm wrangler:devHTTPS Development
Hot Module Replacement (HMR)
How HMR Works
HMR-Friendly Code
Disabling HMR for a File
Debugging
Browser DevTools
VS Code Debugging
Server-Side Debugging
Wrangler Tail (Production Logs)
Database Development
Drizzle Studio
Making Schema Changes
Development Database Resets
Environment Variables
Loading Environment Variables
Fetching from AWS SSM
Managing Secrets Locally
Testing Locally
Unit Tests
Type Checking
Linting and Formatting
Working with Cloudflare Workers
Local R2 Bucket Access
Testing Bindings
Performance Profiling
Vite Build Analysis
Lighthouse Testing
Monitoring HMR Performance
Common Workflows
Adding a New Page
Adding a Component
Making an API Endpoint
Troubleshooting
Port Already in Use
HMR Not Working
TypeScript Errors
Database Connection Issues
Best Practices
Related Documentation
Last updated