Skip to main content

Class: NextWordPressHealthCheck

Hierarchy

  • WordPressHealthCheck

    NextWordPressHealthCheck

Constructors

constructor

new NextWordPressHealthCheck(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/NextWordPressHealthCheck.ts:24

Properties

#appPassword

Private #appPassword: undefined | string

Defined in

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


#credentials

Private #credentials: undefined | string = undefined

Defined in

packages/decoupled-kit-health-check/src/classes/NextWordPressHealthCheck.ts:18


#previewSecret

Private #previewSecret: undefined | string

Defined in

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


appUsername

appUsername: undefined | string

Overrides

WordPressHealthCheck.appUsername

Defined in

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


endpoint

endpoint: string

Overrides

WordPressHealthCheck.endpoint

Defined in

packages/decoupled-kit-health-check/src/classes/NextWordPressHealthCheck.ts:12


envVar

envVar: string

Overrides

WordPressHealthCheck.envVar

Defined in

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


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/NextWordPressHealthCheck.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/NextWordPressHealthCheck.ts:88


getURL

getURL(): URL

Returns

URL

Overrides

WordPressHealthCheck.getURL

Defined in

packages/decoupled-kit-health-check/src/classes/NextWordPressHealthCheck.ts:83


validateAuth

validateAuth(): Promise<NextWordPressHealthCheck>

Returns

Promise<NextWordPressHealthCheck>

Overrides

WordPressHealthCheck.validateAuth

Defined in

packages/decoupled-kit-health-check/src/classes/NextWordPressHealthCheck.ts:146


validateEndpoint

validateEndpoint(): Promise<NextWordPressHealthCheck>

Returns

Promise<NextWordPressHealthCheck>

Overrides

WordPressHealthCheck.validateEndpoint

Defined in

packages/decoupled-kit-health-check/src/classes/NextWordPressHealthCheck.ts:105


validateMenu

validateMenu(): Promise<NextWordPressHealthCheck>

Returns

Promise<NextWordPressHealthCheck>

Overrides

WordPressHealthCheck.validateMenu

Defined in

packages/decoupled-kit-health-check/src/classes/NextWordPressHealthCheck.ts:119


validatePreview

validatePreview(): Promise<NextWordPressHealthCheck>

Returns

Promise<NextWordPressHealthCheck>

Overrides

WordPressHealthCheck.validatePreview

Defined in

packages/decoupled-kit-health-check/src/classes/NextWordPressHealthCheck.ts:204