Output Types
Reference for all build output types exposed to adapters.
The outputs object contains arrays of build output types:
outputs.pages: React pages from thepages/directoryoutputs.pagesApi: API routes frompages/api/outputs.appPages: React pages from theapp/directoryoutputs.appRoutes: API and metadata routes fromapp/outputs.prerenders: ISR-enabled routes and static prerendersoutputs.staticFiles: Static assets and auto-statically optimized pagesoutputs.middleware: Middleware function (if present)
Note: When config.output is set to 'export', only outputs.staticFiles is populated. All other arrays (pages, appPages, pagesApi, appRoutes, prerenders) will be empty since the entire application is exported as static files.
For any route output with runtime: 'edge', edgeRuntime is included and contains the canonical entry metadata for invoking that output in your edge runtime.
Pages (outputs.pages)
React pages from the pages/ directory:
API Routes (outputs.pagesApi)
API routes from pages/api/:
App Pages (outputs.appPages)
React pages from the app/ directory:
App Routes (outputs.appRoutes)
API and metadata routes from the app/ directory:
Prerenders (outputs.prerenders)
ISR-enabled routes and static prerenders:
Static Files (outputs.staticFiles)
Static assets and auto-statically optimized pages:
Middleware (outputs.middleware)
middleware.ts (.js/.ts) or proxy.ts (.js/.ts) function (if present):