WFDASH-WEBAPP/src/middleware.ts
Dave 43de97501c feat(tv): add TV dashboard + refine workflows
Add full PIN-protected TV dashboard stack including auth, redirects, map view, APIs, and server services.

Also include these critical refinements:
- Overhaul PO number generation to use per-company monthly sequences
- Rework quote rejection to bounce quotes back to operator queues instead of marking them terminal
- Add post_processing order tab group for clearer workflow visibility
- Fix collection pool tooltip positioning, overflow clipping, and default collapsed state
- Refactor customer list API, clean up unused form props, and fix item intel popover target ID handling
- Add comprehensive tests for new components and update existing test expectations
2026-08-13 20:55:22 +02:00

22 lines
No EOL
646 B
TypeScript

import { NextResponse } from "next/server";
/**
* Next.js middleware — currently a no-op pass-through.
*
* The real auth check lives in the per-page server component
* (`src/app/(tv)/dashboard/page.tsx`) because `tv-session` uses
* `node:crypto` (HMAC), which isn't bundled by the Edge runtime.
* Importing the helper here would fail webpack's node: scheme
* handling.
*
* Leaving the matcher in place so future Edge-friendly concerns
* (rate limiting, origin checks) can be added without re-declaring
* it.
*/
export function middleware() {
return NextResponse.next();
}
export const config = {
matcher: ["/board/:path*"],
};