# /dev — Start Development Server

Start the Next.js development server on port 9000.

## Usage

```
/dev                       # Start dev server
/dev stop                  # Stop running dev server
/dev restart               # Restart dev server
/dev status                # Check if dev server is running
```

**Examples:**
- `/dev`
- `/dev status`
- `/dev restart`

## Workflow

### Start Dev Server
1. Check if port 9000 is already in use:
   ```bash
   lsof -i :9000 2>/dev/null
   ```
2. If port is occupied, ask user if they want to kill the existing process
3. Start the dev server:
   ```bash
   cd /Users/Asim/Desktop/mawidi_codex/mawidi-site && npm run dev
   ```
   This runs: `NODE_OPTIONS='--max-old-space-size=2048' next dev -p 9000`
4. Server will be available at `http://localhost:9000`

### Stop Dev Server
```bash
lsof -ti :9000 | xargs kill -9 2>/dev/null
```

### Check Status
```bash
lsof -i :9000 2>/dev/null && echo "Dev server is running on port 9000" || echo "Dev server is NOT running"
```

### Restart
1. Stop existing server
2. Start fresh

## Notes
- Port is ALWAYS 9000 (never 3000)
- Memory limit is set to 2048MB for development
- The dev server supports hot reload
- Access at http://localhost:9000/en or http://localhost:9000/ar for bilingual routes
