Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 897 Bytes

File metadata and controls

13 lines (10 loc) · 897 Bytes

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.

Security Guidelines

  • Sanitization: All user-controlled strings reflected in the UI must be sanitized using the sanitize utility in @/app/lib/sanitize.ts to prevent XSS attacks.
  • dangerousSetInnerHTML: Never use dangerouslySetInnerHTML without explicit sanitization from a trusted library like DOMPurify.

Component Demos

  • Do not add public App Router pages for internal component demos. Use Storybook (npm run storybook) as the canonical demo environment.
  • Any dev-only demo routes must return 404 in production (NODE_ENV === "production").