mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
8861f0a4a6
## What? Adds [Conductor](https://www.conductor.build/) configuration to enable team members to use parallel Claude Code agents for Next.js development. **Files added:** - `.conductor/conductor.json` - Main configuration with setup/run scripts - `.conductor/README.md` - Documentation for using Conductor with Next.js - `.gitignore` - Added entry to ignore Conductor worktree directories ## Why? Conductor is a Mac app that orchestrates multiple Claude Code agents in parallel, each with its own isolated git worktree. This enables: - **Parallel development** - Work on multiple features simultaneously without branch conflicts - **Isolated environments** - Each agent has its own clean working directory - **Faster iteration** - Multiple AI assistants can tackle different aspects of a task concurrently Sharing this configuration allows other team members to leverage the same workflow for Next.js development. ## How? The configuration includes: 1. **Setup script** that runs when creating a new workspace: - Enables corepack for pnpm - Validates Node.js version (18+) - Installs dependencies with `--prefer-offline` - Runs `pnpm build` 2. **Run script** that starts watch mode (`pnpm --filter=next dev`) for fast iteration 3. **Environment variables** to disable telemetry during development 4. **Gitignore entry** (`.conductor/*/`) to prevent accidentally committing worktree contents
21 lines
506 B
Bash
Executable File
21 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Conductor Run Script for Next.js
|
|
#
|
|
# This script runs when starting work in a Conductor workspace.
|
|
# It starts the watch mode build for fast iteration.
|
|
#
|
|
|
|
set -e
|
|
|
|
echo "🚀 Starting Next.js development environment..."
|
|
echo ""
|
|
echo "Starting watch mode (pnpm --filter=next dev)..."
|
|
echo "This will auto-rebuild on file changes."
|
|
echo ""
|
|
echo "⚠️ Remember: Never run 'pnpm build' while this is running!"
|
|
echo ""
|
|
|
|
# Start the watch mode build for the next package
|
|
pnpm --filter=next dev
|