Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Website: WP Cloud: Relay secrets for error logger (#1337)
## What is this PR doing? This PR updates our WP Cloud hosting setup to provide secrets necessary for error logging to WP.org Slack. ## Testing Instructions I tested manually playground-dot-wordpress-dot-net.atomicsites.blog via dev tools console, since the Playground error dialog is hardcoded to log to playground.wordpress.net. ``` fd = new FormData; fd.append('description', 'PLEASE IGNORE: This is a test.'); fd.append('logs', 'test-logs'); fd.append('url', 'https://playground-dot-wordpress-dot-net.atomicsites.blog/'); fd.append('context', 'test-context'); fd.append('blueprint', 'test-blueprint'); fetch( '/logger.php', { method: 'POST', body: fd } ).then(r => (console.log('logging response', r), r.text())).then( t => console.log('text', t) ) // Results: Promise {<pending>} logging response Response {type: 'basic', url: 'https://playground-dot-wordpress-dot-net.atomicsites.blog/logger.php', redirected: false, status: 200, ok: true, …} text {"ok":true} ``` And a message was logged to WP.org Slack here: https://wordpress.slack.com/archives/C06Q5DCKZ3L/p1714150218128469
- Loading branch information