Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
backend ruleP1universalStack: node
seossrmetadataarchitecture
Set page metadata server-side for SEO
Emit title/meta and important markup from the controller/server render (conditionally per route) so crawlers see it, rather than only client-side.
PR: frontpage-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codetypescript
| 1 | // title set only in client componentDidMount |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | // controller sets page title/meta during SSR based on route |
Explanation (EN)
Objašnjenje (HR)