// Next.js App Router .cursorrules
// Next.js App Router best practices
const nextjsAppRouterBestPractices = [
"Use server components by default",
"Implement client components only when necessary",
"Utilize the new file-based routing system",
"Use layout.tsx for shared layouts",
"Implement loading.js for loading states",
"Use error.js for error handling",
"Utilize route handlers for API routes",
];
// Folder structure
const folderStructure = `app/
layout.tsx
page.tsx
components/
app/
auth/
global/
marketing/
mdx/
templates/
ui/
lib/
types/
utils/
public/`;
// Additional instructions
const additionalInstructions = `
1. Use TypeScript for type safety
2. Implement proper metadata for SEO
3. Utilize Next.js Image component for optimized images
4. Use CSS Modules or Tailwind CSS for styling
5. Implement proper error boundaries
6. Follow Next.js naming conventions for special files
7. Use environment variables for configuration
8. Do not remove any comments.
`;
python
java
tex
groovy
verilog
next.js
c
starlark
+30 more
First Time Repository
nothing to do
Jupyter Notebook
Languages:
Batchfile: 1.4KB
C#: 0.3KB
C++: 3.8KB
CMake: 0.9KB
Dockerfile: 5.8KB
Elixir: 0.1KB
Emacs Lisp: 1.3KB
HCL: 0.3KB
HTML: 40.7KB
Java: 0.6KB
JavaScript: 349.2KB
Jupyter Notebook: 5010.1KB
MATLAB: 3.9KB
Makefile: 1.2KB
PHP: 2.7KB
PowerShell: 46.8KB
Procfile: 0.0KB
Python: 145.1KB
R: 19.7KB
Ruby: 0.2KB
Shell: 216.6KB
Tcl: 1.8KB
TeX: 14.0KB
TypeScript: 4.4KB
Created: 11/18/2024
Updated: 1/23/2025
All Repositories (5)
nothing to do
nothing to do
nothing to do
nothing to do