(boot: Boot)
| 134 | }; |
| 135 | |
| 136 | const enrichBootWithFeatures = async (boot: Boot): Promise<Boot> => { |
| 137 | if (!boot.exp || !process.env.NEXT_PUBLIC_EXPERIMENTATION_KEY) { |
| 138 | return boot; |
| 139 | } |
| 140 | |
| 141 | const features = await decrypt( |
| 142 | boot.exp.f, |
| 143 | process.env.NEXT_PUBLIC_EXPERIMENTATION_KEY, |
| 144 | 'AES-CBC', |
| 145 | 128, |
| 146 | ); |
| 147 | |
| 148 | return { ...boot, exp: { ...boot.exp, features: JSON.parse(features) } }; |
| 149 | }; |
| 150 | |
| 151 | interface GetBootDataParams { |
| 152 | app: string; |
no test coverage detected