mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## Summary - move adapter implementation docs from `app/api-reference/config/next-config-js/adapters` to `app/api-reference/adapters` - keep `adapterPath` as an entry page that points to the new adapters section - add matching Pages Router pointer docs under `pages/api-reference/adapters` - update existing docs links that referenced old `adapterPath#...` anchors to the new adapters routes
18 lines
483 B
Plaintext
18 lines
483 B
Plaintext
---
|
|
title: Configuration
|
|
description: Configure `adapterPath` or `NEXT_ADAPTER_PATH` to use a custom deployment adapter.
|
|
---
|
|
|
|
To use an adapter, specify the path to your adapter module in `adapterPath`:
|
|
|
|
```js filename="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.
|