You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/01-app/03-api-reference/05-config/01-next-config-js/adapterPath.mdx
+91-6Lines changed: 91 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,12 +128,17 @@ Called after the build process completes with detailed information about routes
128
128
**Parameters:**
129
129
130
130
-`routes`: Object containing route manifests for headers, redirects, rewrites, and dynamic routes
131
+
-`routes.headers`: Array of header route objects with `source`, `sourceRegex`, `headers`, `has`, `missing`, and optional `priority` fields
132
+
-`routes.redirects`: Array of redirect route objects with `source`, `sourceRegex`, `destination`, `statusCode`, `has`, `missing`, and optional `priority` fields
133
+
-`routes.rewrites`: Object with `beforeFiles`, `afterFiles`, and `fallback` arrays, each containing rewrite route objects with `source`, `sourceRegex`, `destination`, `has`, and `missing` fields
134
+
-`routes.dynamicRoutes`: Array of dynamic route objects with `source`, `sourceRegex`, `destination`, `has`, and `missing` fields
131
135
-`outputs`: Detailed information about all build outputs organized by type
132
136
-`projectDir`: Absolute path to the Next.js project directory
133
137
-`repoRoot`: Absolute path to the detected repository root
134
138
-`distDir`: Absolute path to the build output directory
135
139
-`config`: The final Next.js configuration (with `modifyConfig` applied)
136
140
-`nextVersion`: Version of Next.js being used
141
+
-`buildId`: Unique identifier for the current build
137
142
138
143
## Output Types
139
144
@@ -149,11 +154,14 @@ React pages from the `pages/` directory:
149
154
id: string// Route identifier
150
155
filePath: string// Path to the built file
151
156
pathname: string// URL pathname
157
+
sourcePage: string// Original source file path in pages/ directory
0 commit comments