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