ab4cloudfe
v0.2.2
Published
It is mainly to solve the replacement of old services and new services.
Readme
ab4cloudfe
It is mainly to solve the replacement of old services and new services.
Usage
yarn add ab4cloudfeimport { setStrategy } from 'ab4cloudfe'
setStrategy(percentage, options)percentage: Int, [1-100]
options: Object
| parameter | type | | | ------------ | --------- |------------ | | whitelist | Array | Add a whitelist to specific users, allowing the users to enter B | | abkey | String | When multiple different pages need to use ab, use this key to distinguish | | mount | Function | hook, when the function just executes,the mount will run | | beforeSet | Function | hook, it will be run before set cookie | | set | Function | hook, it will be run after set before reload page |
Important
Before using ab4cloudfe, you should agree on a key with Devops (abstrategy by default). Devops will intercept in aws alb based on this value.
