Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion app/earn/activity/MyActivityClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ const PartnerSimulator = dynamic(
})),
{ ssr: false },
);
// Ops console is a debug surface; split it out of the initial bundle so it
// doesn't block interactive on the main thread.
const LiveOpsConsole = dynamic(
() =>
import('@/features/ops/LiveOpsConsole').then((m) => ({
default: m.LiveOpsConsole,
})),
{ ssr: false },
);
import { MyActivityPageHeader } from '@/features/earn/activity/components/MyActivityPageHeader';
import { NeedsAttentionStrip } from '@/features/earn/activity/components/NeedsAttentionStrip';
import { PinkHero } from '@/features/earn/activity/components/PinkHero';
Expand All @@ -53,7 +62,6 @@ import { useRefreshActivity } from '@/features/earn/activity/hooks/useRefreshAct
import type { ActivityStatus } from '@/features/earn/activity/lib/deriveActivityStatus';
import { deriveActivityTotals } from '@/features/earn/activity/lib/deriveActivityTotals';
import type { ActivityOffer } from '@/features/earn/activity/lib/types';
import { LiveOpsConsole } from '@/features/ops/LiveOpsConsole';
import { track } from '@/lib/analytics';
import { getOptimisticStore } from '@/lib/realtime/optimisticStore';
import { useActivitySubscription } from '@/lib/realtime/useActivitySubscription';
Expand Down
3 changes: 3 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import type { NextConfig } from "next";

const nextConfig: NextConfig = {
reactStrictMode: true,
experimental: {
optimizePackageImports: ['@mui/material', '@mui/icons-material', 'motion'],
Comment thread
yatesjalex marked this conversation as resolved.
},
};

export default nextConfig;
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,12 @@
"engines": {
"node": ">=20"
},
"packageManager": "pnpm@10.33.0"
"packageManager": "pnpm@10.33.0",
"browserslist": [
"last 2 chrome versions",
"last 2 firefox versions",
"last 2 safari versions",
"last 2 edge versions",
"not dead"
]
}
Loading