Advance
Framework Next.js 13 Advance
Categories:
What does NextJS .prepare() actually do?
javascript - What does NextJS .prepare() actually do? - Stack Overflow
it does 5 things in this order in an async/await fashion
- Verify TypeScript Setup
- load Custom Routes
- add ExportPathMap to Routes Makes next export exportPathMap work in development mode. So that the user doesn’t have to define a custom server reading the exportPathMap
- start hotReloader
- records telemetry [source code]