-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
17 lines (14 loc) · 603 Bytes
/
config.js
File metadata and controls
17 lines (14 loc) · 603 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var config = {
infra: {},
app: {},
};
// Set region and other config properties from environment variables
config.infra.region = process.env.AWS_REGION || "us-west-2";
config.app.hotel_name = process.env.HOTEL_NAME || "Hotel Yorba";
config.infra.dynamodb_table = process.env.DYNAMODB_TABLE_NAME || "Rooms";
console.debug("Configuration loaded with the following settings:");
console.debug("Region:", config.infra.region);
console.debug("Hotel Name:", config.app.hotel_name);
console.debug("DynamoDB Table:", config.infra.dynamodb_table);
// Directly export config object
module.exports = config;