Namespace: config
@headstartwp/next.config
@headstartwp/next/config
The config export of the @headstartwp/next
package.
Usage
import { withHeadlessConfig } from '@headstartwp/next/config';
Functions
withHeadlessConfig
▸ withHeadlessConfig(nextConfig?
, headlessConfig?
, withHeadstarWPConfigOptions?
): NextConfig
Parameters
Name | Type |
---|---|
nextConfig | NextConfig |
headlessConfig | HeadlessConfig |
withHeadstarWPConfigOptions | Object |
withHeadstarWPConfigOptions.injectConfig | boolean |
Returns
NextConfig
Defined in
packages/next/src/config/withHeadstartWPConfig.ts:279
withHeadstartWPConfig
▸ withHeadstartWPConfig(nextConfig?
, headlessConfig?
, withHeadstarWPConfigOptions?
): NextConfig
HOC used to wrap the nextjs config object with the headless config object.
Parameters
Name | Type | Description |
---|---|---|
nextConfig | NextConfig | The nextjs config object |
headlessConfig | HeadlessConfig | The headless config |
withHeadstarWPConfigOptions | Object | |
withHeadstarWPConfigOptions.injectConfig | boolean | - |
Returns
NextConfig