- Next 16 (Turbopack dev and build), React 19.3; tsconfig jsx react-jsx; images remotePatterns. - ESLint 10 with eslint-config-next 16 flat configs; npm run lint = eslint src. React Compiler-era react-hooks rules set to warn (181 existing places) until screens move to v2. - Removed the empty pass-through middleware.ts. - e2e: wait for the palette to be ready before Ctrl+K on the staff dashboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls1vMdg2GYqbnKZmPaX1ot
16 lines
594 B
TypeScript
16 lines
594 B
TypeScript
// Next.js server instrumentation entry point. A no-op when NEXT_PUBLIC_SENTRY_DSN isn't
|
|
// set — see instrumentation-client.ts for the browser-side counterpart.
|
|
//
|
|
// Node runtime only — the app has no middleware/proxy running in the edge runtime.
|
|
export async function register() {
|
|
if (!process.env.NEXT_PUBLIC_SENTRY_DSN) return;
|
|
if (process.env.NEXT_RUNTIME !== "nodejs") return;
|
|
|
|
const Sentry = await import("@sentry/nextjs");
|
|
Sentry.init({
|
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
environment: process.env.NODE_ENV || "development",
|
|
tracesSampleRate: 0.1,
|
|
});
|
|
}
|