Skip to main content

Function: withHeadstartWPConfig()

withHeadstartWPConfig(nextConfig, headlessConfig, withHeadstarWPConfigOptions): NextConfig

Defined in: packages/next/src/config/withHeadstartWPConfig.ts:99

HOC used to wrap the nextjs config object with the headless config object.

Parameters

nextConfig

NextConfig = {}

The nextjs config object

headlessConfig

HeadlessConfig = {}

The headless config

withHeadstarWPConfigOptions

injectConfig

boolean

Returns

NextConfig