Capítulo 434 de 456
How to register a deployment adapter with Next.js: point to it via adapterPath in config, or NEXT_ADAPTER_PATH for zero-config platform usage.
adapterPath: config option pointing to the adapter module (typically via require.resolve).NEXT_ADAPTER_PATH: env var alternative, enables zero-config usage by deployment platforms without touching next.config.js./** @type {import('next').NextConfig} */
const nextConfig = {
adapterPath: require.resolve('./my-adapter.js'),
}
module.exports = nextConfig
adapterPath.adapterPath) ou env var (NEXT_ADAPTER_PATH) para setup zero-config em plataformas.adapterPath deve implementar.