Skip to content

Commit 19675bf

Browse files
committed
chore(docs): drop non-TSDoc inline comments
Repo convention is TSDoc-only, no plain // comments.
1 parent 9713556 commit 19675bf

3 files changed

Lines changed: 0 additions & 14 deletions

File tree

apps/docs/app/[lang]/layout.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ export default async function Layout({ children, params }: LayoutProps) {
110110
collapsible: false,
111111
footer: null,
112112
banner: null,
113-
// The sidebar renders every page in the doc tree as a link at
114-
// once, so Next's default viewport-prefetch behavior fires an
115-
// RSC payload fetch for every one of them on initial load -
116-
// dozens of concurrent requests competing with the actual
117-
// page's own content for bandwidth on a real connection.
118113
prefetch: false,
119114
components: {
120115
Item: SidebarItem,

apps/docs/components/ui/video.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ export function Video({
3636
const el = videoRef.current
3737
if (!el) return
3838

39-
// `autoPlay` forces browsers to fetch the full file immediately on mount
40-
// regardless of `preload` - gate the actual load behind the viewport so a
41-
// page with several of these doesn't pull down every video up front.
42-
// Fall back to eager loading where IntersectionObserver isn't available
43-
// (older browsers, some embedded webviews) rather than leave the video
44-
// permanently source-less.
4539
if (typeof IntersectionObserver === 'undefined') {
4640
setIsInView(true)
4741
return

apps/docs/next.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ const withMDX = createMDX()
55

66
const config: NextConfig = {
77
reactStrictMode: true,
8-
// Safe here since this repo's source is already fully public on GitHub -
9-
// no additional exposure versus Next's default (disabled to avoid leaking
10-
// source on the client).
118
productionBrowserSourceMaps: true,
129
transpilePackages: ['@sim/emcn', '@sim/workflow-renderer'],
1310
images: {

0 commit comments

Comments
 (0)