docs/01-app/03-api-reference/05-config/01-next-config-js/adapterPath.mdx
Next.js provides a built-in adapters API. It allows deployment platforms or build systems to integrate with the Next.js build process.
For a full reference implementation, see the nextjs/adapter-vercel adapter.
To use an adapter, specify the path to your adapter module in adapterPath:
/** @type {import('next').NextConfig} */
const nextConfig = {
adapterPath: require.resolve('./my-adapter.js'),
}
module.exports = nextConfig
Alternatively NEXT_ADAPTER_PATH can be set to enable zero-config usage in deployment platforms.
For full adapter implementation details, use the dedicated Adapters section:
@next/routingSee Creating an Adapter.
See API Reference.
See Testing Adapters.
@next/routingSee Routing with @next/routing.
See Implementing PPR in an Adapter.
See Runtime Integration.
See Invoking Entrypoints.
See Output Types.
See Routing Information.
See Use Cases.