create-node-prodkit 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-node-prodkit",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Production-grade Node.js + Express skeleton CLI — scaffold a new project in seconds",
5
5
  "license": "ISC",
6
6
  "author": "vinay",
@@ -4,6 +4,8 @@ PORT=3000
4
4
  # API
5
5
  API_TIMEOUT=5000
6
6
 
7
+ APP_ENV=development
8
+
7
9
  # Logging
8
10
  # internal → writes to logs/ directory
9
11
  # external → POSTs to LOG_SERVICE_URL
@@ -3,6 +3,7 @@ dotenv.config();
3
3
 
4
4
  export default {
5
5
  port: process.env.PORT || 3000,
6
+ appEnv: process.env.APP_ENV || "development",
6
7
 
7
8
  api: {
8
9
  timeout: Number(process.env.API_TIMEOUT) || 5000,
@@ -20,6 +21,6 @@ export default {
20
21
  fileName: "app",
21
22
  maxSize: 5 * 1024 * 1024,
22
23
  dailyRotate: true,
23
- logType: Number(process.env.LOG_TYPE) || 1
24
+ logType: Number(process.env.LOG_TYPE) || 1,
24
25
  },
25
26
  };
@@ -0,0 +1,10 @@
1
+ export const credsConfig = () => {
2
+ if(process.env.APP_ENV === 'production') {
3
+ return {
4
+ clientId: "ABCDEF"
5
+ }
6
+ }
7
+ return {
8
+ clientId: "123456"
9
+ }
10
+ }