Skip to content

Improve error handling for validating the Faust Secret #2139

@colinmurphy

Description

@colinmurphy

Description

The current issue is that if your WordPress build is returning a 500X error, when you run faust build or faust generatePossibleTypes you will get the following error

error - Validation Failed: Your Faust front-end site URL value is misconfigured. It should NOT match the NEXT_PUBLIC_WORDPRESS_URL.``

This is due to else statement - https://github.com/wpengine/faustjs/blob/canary/packages/faustwp-cli/src/healthCheck/validateNextWordPressUrl.ts#L31

Steps to reproduce

  1. Have a failing WP build
  2. Run npm run build or npm run generate

Additional context

No response

@faustwp/core Version

Any

@faustwp/cli Version

Any

FaustWP Plugin Version

Any

WordPress Version

Any

Additional environment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

✅ Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions