-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
27 lines (23 loc) · 770 Bytes
/
config.js
File metadata and controls
27 lines (23 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require('dotenv').config();
const BACKSTAGE_API_URL = process.env.BACKSTAGE_API_URL;
const BACKSTAGE_API_KEY = process.env.BACKSTAGE_API_KEY;
if (!BACKSTAGE_API_URL) {
console.error('Missing BACKSTAGE_API_URL environment variable');
console.error('Please set it as an environment variable.');
console.error(
'Example: export BACKSTAGE_API_URL="https://your-backstage-instance/api"'
);
process.exit(1);
}
if (!BACKSTAGE_API_KEY) {
console.error('Missing BACKSTAGE_API_KEY environment variable');
console.error(
'Please set it in your .env file or as an environment variable.'
);
console.error('Example: export BACKSTAGE_API_KEY="your-backstage-api-key"');
process.exit(1);
}
module.exports = {
BACKSTAGE_API_URL,
BACKSTAGE_API_KEY,
};