You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/rules/architecture.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
- Each `@pyreon/zero` subpath export (`./link`, `./cache`, etc.) must have a matching entry in `packages/zero/package.json` exports map with `bun`, `import`, and `types` conditions
4
4
- Shared utilities go in `packages/zero/src/utils/` — only extract when used by 2+ files
5
5
- Vite plugins follow the pattern: `export function pluginName(config = {}): Plugin`
6
-
- Middleware uses the `(request, next) => Promise<Response>` signature from `@pyreon/server`
6
+
- Middleware uses the `(ctx: MiddlewareContext) => Response | void | Promise<Response | void>` signature from `@pyreon/server`
7
7
- Use `withHeaders()` from `utils/with-headers.ts` for Response header modification in middleware
8
8
- Use `useIntersectionObserver()` from `utils/use-intersection-observer.ts` instead of raw IntersectionObserver
9
9
- Components that need customization should expose 3 levels: composable (`useX`), HOC (`createX`), default component
0 commit comments