UNPKG

1.77 kBJavaScriptView Raw
1/***************************************************************************************
2 * (c) 2019 Adobe. All rights reserved.
3 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License. You may obtain a copy
5 * of the License at http://www.apache.org/licenses/LICENSE-2.0
6 *
7 * Unless required by applicable law or agreed to in writing, software distributed under
8 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9 * OF ANY KIND, either express or implied. See the License for the specific language
10 * governing permissions and limitations under the License.
11 ****************************************************************************************/
12
13module.exports = () => {
14 if (
15 process.env['REACTOR_UPLOADER_PRIVATE_KEY_PRODUCTION'] ||
16 process.env['REACTOR_UPLOADER_CLIENT_SECRET_PRODUCTION']
17 ) {
18 throw new Error(
19 'The environment variables REACTOR_UPLOADER_PRIVATE_KEY_PRODUCTION and ' +
20 'REACTOR_UPLOADER_CLIENT_SECRET_PRODUCTION were renamed. The new names are ' +
21 'REACTOR_UPLOADER_PRIVATE_KEY and REACTOR_UPLOADER_CLIENT_SECRET. Please ' +
22 'update all your places where you use the old variable names!'
23 );
24 }
25
26 if (
27 process.env['REACTOR_UPLOADER_PRIVATE_KEY'] ||
28 process.env['REACTOR_UPLOADER_CLIENT_SECRET']
29 ) {
30 throw new Error(
31 'The environment variables REACTOR_UPLOADER_PRIVATE_KEY and ' +
32 'REACTOR_UPLOADER_CLIENT_SECRET were renamed. The new names are ' +
33 'REACTOR_IO_INTEGRATION_PRIVATE_KEY and REACTOR_IO_INTEGRATION_CLIENT_SECRET. Please ' +
34 'update all your places where you use the old variable names!'
35 );
36 }
37};