File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # Node Environment Rules
2+
3+ ## Development Server
4+
5+ - Always use ` pnpm dev ` to start the development server
6+ - Never use ` pkill ` to terminate processes; use proper shutdown methods instead
7+ - Always look up the port in the ` .env ` file for browser requests
8+ - Use ` Ctrl+C ` to gracefully stop the development server
9+
10+ ## Environment Variables
11+
12+ - Store all configuration in the ` .env ` file
13+ - Reference the ` .env ` file for ports, API keys, and other configuration
14+ - Never hardcode ports or configuration values in code
15+ - Use environment variables for different environments (development, staging, production)
16+
17+ ## Package Management
18+
19+ - Use ` pnpm ` as the package manager for all operations
20+ - Run ` pnpm install ` after pulling new changes
21+ - Use ` pnpm add <package> ` to add new dependencies
22+ - Use ` pnpm add -D <package> ` for development dependencies
23+
24+ ## Process Management
25+
26+ - One development server instance per project
27+ - Check for running processes before starting new ones
28+ - Use proper shutdown signals to terminate processes
29+ - Monitor the terminal output for errors and warnings
You can’t perform that action at this time.
0 commit comments