You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance error messages in Next.js toolbar example to provide specific,
actionable guidance for common WordPress connection failures.
Changes:
- Add comprehensive status code handling (401, 403, 404, 500+) in wordpress.ts
- Parse WordPress error response JSON for detailed error messages
- Detect "No route was found" errors and suggest hwp-wp-env-helpers plugin
- Provide specific troubleshooting steps for CORS, network, and server errors
- Update page.tsx to display detailed error messages instead of generic text
Error messages now include:
- Multiple possible causes for each error type
- Specific commands to resolve issues (npx wp-env start, etc.)
- References to required plugins (hwp-cors-local, hwp-wp-env-helpers)
- WordPress log checking instructions for server errors
0 commit comments