Skip to content
Discussion options

You must be logged in to vote

You're correct that AppPageRouteModule's render() method isn’t directly referenced in app-page.ts or edge-ssr.ts. That’s because the call chain originates deeper in the Next.js internal routing and compilation pipeline.

Where it's actually triggered:

The render() method is called via the handle() method defined in the same module. Here's how it flows:

app-page.ts (in next/src/server/app-render/app-page.ts) imports AppPageRouteModule and instantiates it as part of the route handler setup.

The route handler is passed into Next's request handler pipeline, which in turn calls the handle() method on the route module.

Inside that handle() method, Next.js internally calls:

await this.render()

Th…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@R4R3D1FF
Comment options

@icyJoseph
Comment options

Comment options

You must be logged in to vote
3 replies
@R4R3D1FF
Comment options

@icyJoseph
Comment options

@R4R3D1FF
Comment options

Answer selected by R4R3D1FF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants