Back to Next Js

Configuration

docs/01-app/03-api-reference/07-adapters/01-configuration.mdx

16.2.5356 B
Original Source

To use an adapter, specify the path to your adapter module in adapterPath:

js
/** @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.