mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Resolves #64412 This adds a client transition to the app route `ModuleAssetContext` and the corresponding transforms so that client components can be safely imported and referenced (as their proxies) in app routes. Test Plan: Added an integration test Closes PACK-2964
9 lines
205 B
TypeScript
9 lines
205 B
TypeScript
import { NextResponse } from 'next/server'
|
|
import { ClientComponent } from '../../ClientComponent'
|
|
|
|
export function GET() {
|
|
return NextResponse.json({
|
|
clientComponent: typeof ClientComponent,
|
|
})
|
|
}
|