Skip to content

fix: Add .cursor/rules/echo_rules.mdc to echo-start templates#764

Open
ledgerpilot wants to merge 5 commits intoMerit-Systems:masterfrom
ledgerpilot:ledgerpilot/fix-636
Open

fix: Add .cursor/rules/echo_rules.mdc to echo-start templates#764
ledgerpilot wants to merge 5 commits intoMerit-Systems:masterfrom
ledgerpilot:ledgerpilot/fix-636

Conversation

@ledgerpilot
Copy link
Copy Markdown

Closes #636

What changed

The fix involves adding a new .cursor/rules/echo_rules.mdc file to several echo-start templates, providing guidelines and best practices for building and interacting with echo API routes within these projects. // app/api/echo/[...path]/route.ts import { handlers } from '@/echo'; export const { GET, POST, PUT, DELETE } = handlers; // Conceptual example for a handler within '@/echo' import { N

Files modified

  • templates/assistant-ui/.cursor/rules/echo_rules.mdc
  • templates/authjs/.cursor/rules/echo_rules.mdc
  • templates/next-chat/.cursor/rules/echo_rules.mdc
  • templates/next/.cursor/rules/echo_rules.mdc
  • templates/nextjs-api-key-template/.cursor/rules/echo_rules.mdc

Automated PR — please review.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 9, 2026

@ledgerpilot is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

@@ -0,0 +1,14 @@
---
description: Guidelines and best practices for building API routes using the echo service, including defining handlers, request/response patterns, and error handling.
globs: templates/**/app/api/echo/**/*.ts,templates/**/app/api/echo/**/*.tsx
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
globs: templates/**/app/api/echo/**/*.ts,templates/**/app/api/echo/**/*.tsx
globs: src/app/api/echo/**/*.ts,src/app/api/echo/**/*.tsx

Cursor rules file has incorrect glob pattern that will never match files when the template is used as a standalone project.

Fix on Vercel

@@ -0,0 +1,14 @@
---
description: Guidelines and best practices for building API routes using the echo service, including defining handlers, request/response patterns, and error handling.
globs: templates/**/app/api/echo/**/*.ts,templates/**/app/api/echo/**/*.tsx
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
globs: templates/**/app/api/echo/**/*.ts,templates/**/app/api/echo/**/*.tsx
globs: app/api/echo/**/*.ts,app/api/echo/**/*.tsx

Cursor rules glob pattern templates/**/app/api/echo/**/*.ts never matches files when template is used standalone because there's no templates/ directory.

Fix on Vercel

@@ -0,0 +1,14 @@
---
description: Guidelines and best practices for building API routes using the echo service, including defining handlers, request/response patterns, and error handling.
globs: templates/**/app/api/echo/**/*.ts,templates/**/app/api/echo/**/*.tsx
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
globs: templates/**/app/api/echo/**/*.ts,templates/**/app/api/echo/**/*.tsx
globs: src/app/api/echo/**/*.ts,src/app/api/echo/**/*.tsx

Cursor rules glob pattern uses monorepo path templates/**/app/api/echo/**/*.ts which will never match files in standalone template usage.

Fix on Vercel

@@ -0,0 +1,14 @@
---
description: Guidelines and best practices for building API routes using the echo service, including defining handlers, request/response patterns, and error handling.
globs: templates/**/app/api/echo/**/*.ts,templates/**/app/api/echo/**/*.tsx
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
globs: templates/**/app/api/echo/**/*.ts,templates/**/app/api/echo/**/*.tsx
globs: src/app/api/echo/**/*.ts,src/app/api/echo/**/*.tsx

Cursor rules glob pattern templates/**/app/api/echo/**/*.ts will never match files when the authjs template is used as a standalone project.

Fix on Vercel

@@ -0,0 +1,14 @@
---
description: Guidelines and best practices for building API routes using the echo service, including defining handlers, request/response patterns, and error handling.
globs: templates/**/app/api/echo/**/*.ts,templates/**/app/api/echo/**/*.tsx
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
globs: templates/**/app/api/echo/**/*.ts,templates/**/app/api/echo/**/*.tsx
globs: src/app/api/echo/**/*.ts,src/app/api/echo/**/*.tsx

Cursor rules glob pattern references wrong directory structure, causing rules to never match files when template is used standalone

Fix on Vercel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add .cursor/rules/echo_rules.mdc to echo-start templates

1 participant