File tree Expand file tree Collapse file tree 6 files changed +8
-46
lines changed
Expand file tree Collapse file tree 6 files changed +8
-46
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ export async function GET(request: Request) {
6464 maxAge : 60 * 60 * 24 * 7 , // 7 days (adjust to match GitHub token expiration)
6565 path : '/' ,
6666 } )
67- console . log ( `GitHub provider_token saved to cookie: ${ cookieName } ` )
6867 } else {
6968 console . warn (
7069 'No provider_token in session - GitHub API access may be limited' ,
Original file line number Diff line number Diff line change @@ -30,11 +30,17 @@ import { Toaster } from 'sonner'
3030import { CommandPalette } from '@/components/CommandPalette/CommandPalette'
3131import { ShortcutsHelp } from '@/components/ShortcutsHelp'
3232import { Providers } from '@/lib/redux/providers'
33+ import { isMSWEnabled } from '@/lib/utils/isMSWEnabled'
3334
3435import { MSWProvider } from './msw-provider'
3536
36- // NOTE: Server-side MSW is initialized via instrumentation.ts (Next.js hook)
37- // This ensures MSW starts BEFORE any route handlers run.
37+ // Server-side MSW initialization (runs at module load time)
38+ // Uses require() to avoid bundling issues with Next.js SSR
39+ if ( process . env . NEXT_RUNTIME === 'nodejs' && isMSWEnabled ( ) ) {
40+ // eslint-disable-next-line @typescript-eslint/no-require-imports
41+ const { server } = require ( '../mocks/server' )
42+ server . listen ( { onUnhandledRequest : 'bypass' } )
43+ }
3844
3945export default function RootLayout ( {
4046 children,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -777,7 +777,5 @@ export async function createFirstBoardIfNeeded(
777777 // Non-critical - don't block
778778 }
779779
780- console . log ( 'Created first board for new user:' , data . id )
781-
782780 return { id : data . id , name : data . name }
783781}
Original file line number Diff line number Diff line change @@ -67,14 +67,6 @@ export async function createClient() {
6767
6868 // In E2E test mode, wrap auth methods to return mock data
6969 const testMode = isE2ETestMode ( )
70- console . log (
71- '[createClient] APP_ENV:' ,
72- process . env . APP_ENV ,
73- 'NODE_ENV:' ,
74- process . env . NODE_ENV ,
75- 'isE2ETestMode:' ,
76- testMode ,
77- )
7870 if ( testMode ) {
7971 // Use a Proxy to intercept auth methods while preserving all other client functionality
8072 const mockedAuth = {
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ const isE2ETestMode = () =>
2424export async function proxy ( request : NextRequest ) {
2525 // In E2E test mode, bypass authentication and allow all requests
2626 if ( isE2ETestMode ( ) ) {
27- console . log ( '[proxy] E2E test mode - bypassing auth check' )
2827 return NextResponse . next ( {
2928 request : {
3029 headers : request . headers ,
You can’t perform that action at this time.
0 commit comments