mirror of
https://github.com/xtr-dev/payload-automation.git
synced 2025-12-10 00:43:23 +00:00
- Completely abandon config-phase hook registration approach - Use onInit to directly manipulate runtime collection.config.hooks arrays - Add ultra-simple test hook that just logs - Insert hook at beginning of array (unshift) to ensure it runs first - Bypass TypeScript complexity with targeted any usage for hooks object - This tests if ANY hook registration approach works Previous approaches failed because user collections don't exist during plugin config phase.