mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
perf: faster dev startup and lighter bundle
- Switch dev default to Turbopack (5-14x faster compile); keep webpack as dev:webpack - Tailwind v4 source() base so JIT scans identically under both bundlers - Lazy-load @xyflow/react via next/dynamic to keep it out of the shared bundle - optimizePackageImports for heavy barrel imports (xyflow, dnd-kit, material-symbols, marked) - Replace blind setTimeout waits with TCP health-check (waitServerReady) - Run checkForUpdate in parallel instead of blocking server spawn - Background MITM/tunnel/cloudflared kills off the critical path Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -14,7 +14,9 @@ import Badge from "./Badge";
|
||||
import Card from "./Card";
|
||||
import OverviewCards from "@/app/(dashboard)/dashboard/usage/components/OverviewCards";
|
||||
import UsageTable, { fmt, fmtTime } from "@/app/(dashboard)/dashboard/usage/components/UsageTable";
|
||||
import ProviderTopology from "@/app/(dashboard)/dashboard/usage/components/ProviderTopology";
|
||||
import dynamic from "next/dynamic";
|
||||
// Lazy-load: keeps @xyflow/react out of the shared bundle until topology renders
|
||||
const ProviderTopology = dynamic(() => import("@/app/(dashboard)/dashboard/usage/components/ProviderTopology"), { ssr: false });
|
||||
import UsageChart from "@/app/(dashboard)/dashboard/usage/components/UsageChart";
|
||||
|
||||
function timeAgo(timestamp) {
|
||||
|
||||
Reference in New Issue
Block a user