Skip to main content

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

NameType
nextConfigNextConfig
headlessConfigHeadlessConfig
withHeadstarWPConfigOptionsObject
withHeadstarWPConfigOptions.injectConfigboolean

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

NameTypeDescription
nextConfigNextConfigThe nextjs config object
headlessConfigHeadlessConfigThe headless config
withHeadstarWPConfigOptionsObject
withHeadstarWPConfigOptions.injectConfigboolean-

Returns

NextConfig

Defined in

packages/next/src/config/withHeadstartWPConfig.ts:57