generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 611
Expand file tree
/
Copy pathconfig.js
More file actions
22 lines (19 loc) · 720 Bytes
/
config.js
File metadata and controls
22 lines (19 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require('dotenv').config();
var config = {
infra: {
region: process.env.AWS_REGION || "us-west-2",
dynamodb_table: process.env.DYNAMODB_TABLE_NAME || "Rooms",
dynamodb_endpoint: process.env.DYNAMODB_ENDPOINT || "http://127.0.0.1:8001"
},
app: {
hotel_name: process.env.HOTEL_NAME || "Hotel Yorba"
}
};
// Log configuration when loaded
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);
console.debug("DynamoDB Endpoint:", config.infra.dynamodb_endpoint);
// Export just the config object
module.exports = config;