This page is also available as Markdown at /docs/pages/api-reference/adapters/configuration.md. For an index of Next.js Pages Router documentation, see /docs/pages/llms.txt.
Configuration
Last updated May 19, 2026
To use an adapter, specify the path to your adapter module in adapterPath:
next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
adapterPath: require.resolve('./my-adapter.js'),
}
module.exports = nextConfigAlternatively NEXT_ADAPTER_PATH can be set to enable zero-config usage in deployment platforms.
Was this helpful?