Skip to content

Commit ef5298e

Browse files
committed
amoplify yml config changes
1 parent fbe9791 commit ef5298e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/forAI/commonFixesforAI.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
### Analytics & Window Object Method Calls
44
- **ALWAYS check method existence**: Use `if (window.AppConfig && typeof window.AppConfig.methodName === 'function')` before calling any window object methods
55
- **Never assume methods exist**: Even if the object exists, the specific method might not be loaded yet or could be missing
6+
- **AWS Amplify overwrites files**: If using Amplify, ensure all tracking methods are included in `amplify.yml` config generation, not just local files
7+
- **Deployment sync**: After updating `amplify.yml`, push to repo - Amplify auto-detects and rebuilds with new configuration

0 commit comments

Comments
 (0)