Skip to main content

Variable: getHeadlessConfig()

const getHeadlessConfig: () => HeadlessConfig = getHeadstartWPConfig

Defined in: packages/core/src/utils/config.ts:114

Returns the contents of headless.config.js

This function requires framework integration in order to work. The contents of headless.config.js needs to be injected at build time into a global variable.

Make sure you are using one of the framework's integration (such as next) before using this function.

Returns

HeadlessConfig

The contents of headless.config.js