Skip to main content

Configuration

还没翻译译自英文(nextjs.org)本页 3 段都还没译

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 = nextConfig

Alternatively NEXT_ADAPTER_PATH can be set to enable zero-config usage in deployment platforms.