16 lines
713 B
Markdown
16 lines
713 B
Markdown
<!-- BEGIN:nextjs-agent-rules -->
|
|
# This is NOT the Next.js you know
|
|
|
|
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.
|
|
|
|
# File structure
|
|
|
|
In components folder should be reuseable file such a like components/tooltip.tsx components/theme-provider.tsx components/theme-toggle.tsx
|
|
Do not make file that use for 1 purpose, Code it on client.tsx or page.tsx is better
|
|
|
|
client.tsx is file where you code that require `use client`; to that
|
|
app.tsx is file for server side render do not add `use client` to file
|
|
|
|
|
|
<!-- END:nextjs-agent-rules -->
|