Skip to main content

Class: GatsbyWordPressHealthCheck

Hierarchy

  • WordPressHealthCheck

    GatsbyWordPressHealthCheck

Constructors

constructor

new GatsbyWordPressHealthCheck(env)

Resolves .env file if it exists and check for required environment variables, and sets the endpoint

Parameters

NameTypeDescription
envObjectprocess.env
env.envProcessEnv-

Overrides

WordPressHealthCheck.constructor

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:23

Properties

#appPassword

Private #appPassword: undefined | string

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:16


appUsername

appUsername: undefined | string

Overrides

WordPressHealthCheck.appUsername

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:15


endpoint

endpoint: string

Overrides

WordPressHealthCheck.endpoint

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:13


envVar

envVar: string

Overrides

WordPressHealthCheck.envVar

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:14


log

log: Object = logger

Type declaration

NameType
success(message: string) => void
suggest(message: string) => void
warn(message: string) => void

Overrides

WordPressHealthCheck.log

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:17

Methods

checkFor200

checkFor200(url): Promise<boolean>

Parameters

NameType
urlURL

Returns

Promise<boolean>

Overrides

WordPressHealthCheck.checkFor200

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:86


getURL

getURL(): URL

Returns

URL

Overrides

WordPressHealthCheck.getURL

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:81


validateAuth

validateAuth(): Promise<GatsbyWordPressHealthCheck>

Returns

Promise<GatsbyWordPressHealthCheck>

Overrides

WordPressHealthCheck.validateAuth

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:144


validateEndpoint

validateEndpoint(): Promise<GatsbyWordPressHealthCheck>

Returns

Promise<GatsbyWordPressHealthCheck>

Overrides

WordPressHealthCheck.validateEndpoint

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:103


validateMenu

validateMenu(): Promise<GatsbyWordPressHealthCheck>

Returns

Promise<GatsbyWordPressHealthCheck>

Overrides

WordPressHealthCheck.validateMenu

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:117


validatePreview

validatePreview(): Promise<GatsbyWordPressHealthCheck>

Returns

Promise<GatsbyWordPressHealthCheck>

Overrides

WordPressHealthCheck.validatePreview

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:223


validateWPGatsbyPlugin

validateWPGatsbyPlugin(): Promise<GatsbyWordPressHealthCheck>

Returns

Promise<GatsbyWordPressHealthCheck>

Defined in

packages/decoupled-kit-health-check/src/classes/GatsbyWordPressHealthCheck.ts:200