Capítulo 195 de 456
Config option that points Next.js to a custom adapter module, letting deployment platforms or build systems hook into the Next.js build process (used e.g. by the reference nextjs/adapter-vercel implementation).
require.resolve(...)./** @type {import('next').NextConfig} */
const nextConfig = {
adapterPath: require.resolve('./my-adapter.js'),
}
module.exports = nextConfig
@next/routing, Implementing PPR in an Adapter, Runtime Integration, Invoking Entrypoints, Output Types, Routing Information, Use Cases.NEXT_ADAPTER_PATH em vez de editar next.config.js.nextjs/adapter-vercel como referência de implementação completa.adapterPath é declarado.