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: showcase/shell-docs/src/app/layout.tsx
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -55,12 +55,13 @@ export default function RootLayout({
55
55
.map((i)=>i.slug)
56
56
.filter((slug)=>{
57
57
if(reserved.has(slug)){
58
-
if(process.env.NODE_ENV!=="production"){
59
-
// eslint-disable-next-line no-console
60
-
console.error(
61
-
`[layout] integration slug "${slug}" collides with a reserved top-level route and was dropped from knownFrameworks. Rename the integration slug or update RESERVED_ROUTE_SLUGS.`,
62
-
);
63
-
}
58
+
// Always log — a registry integration slug colliding with a
59
+
// reserved top-level route is a hard wiring bug that production
60
+
// operators need to see in logs, not a dev-only warning.
61
+
// eslint-disable-next-line no-console
62
+
console.error(
63
+
`[layout] integration slug "${slug}" collides with a reserved top-level route and was dropped from knownFrameworks. Rename the integration slug or update RESERVED_ROUTE_SLUGS.`,
0 commit comments