mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
5df44d1356
## What?
Add a `.cursor/worktrees.json` configuration file that specifies setup
commands for Cursor worktrees.
## Why?
This configuration allows Cursor to automatically run the necessary
setup commands (`pnpm install` and `pnpm build`) when creating new
worktrees, ensuring a consistent and ready-to-use development
environment.
## How?
Added a new `.cursor/worktrees.json` file with the following
configuration:
```json
{
"setup-worktree": ["pnpm install", "pnpm build"]
}
```
This tells Cursor to:
1. Install dependencies with `pnpm install`
2. Build the project with `pnpm build`
These commands are automatically executed when a new worktree is created
in Cursor.
4 lines
55 B
JSON
4 lines
55 B
JSON
{
|
|
"setup-worktree": ["pnpm install", "pnpm build"]
|
|
}
|