@platformatic/service 1.13.2 → 1.13.4

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.
@@ -27,29 +27,32 @@ class ServiceGenerator extends BaseGenerator {
27
27
  }
28
28
 
29
29
  getConfigFieldsDefinitions () {
30
- return [
31
- {
32
- var: 'PLT_SERVER_HOSTNAME',
33
- label: 'What is the hostname?',
34
- default: '0.0.0.0',
35
- type: 'string',
36
- configValue: 'hostname'
37
- },
38
- {
39
- var: 'PLT_SERVER_LOGGER_LEVEL',
40
- label: 'What is the logger level?',
41
- default: 'info',
42
- type: 'string',
43
- configValue: ''
44
- },
45
- {
46
- label: 'Which port do you want to use?',
47
- var: 'PORT',
48
- default: 3042,
49
- tyoe: 'number',
50
- configValue: 'port'
51
- }
52
- ]
30
+ if (this.config.isRuntimeContext) {
31
+ return [
32
+ {
33
+ var: 'PLT_SERVER_HOSTNAME',
34
+ label: 'What is the hostname?',
35
+ default: '0.0.0.0',
36
+ type: 'string',
37
+ configValue: 'hostname'
38
+ },
39
+ {
40
+ var: 'PLT_SERVER_LOGGER_LEVEL',
41
+ label: 'What is the logger level?',
42
+ default: 'info',
43
+ type: 'string',
44
+ configValue: ''
45
+ },
46
+ {
47
+ label: 'Which port do you want to use?',
48
+ var: 'PORT',
49
+ default: 3042,
50
+ tyoe: 'number',
51
+ configValue: 'port'
52
+ }
53
+ ]
54
+ }
55
+ return []
53
56
  }
54
57
 
55
58
  async _afterPrepare () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "1.13.2",
3
+ "version": "1.13.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -69,12 +69,12 @@
69
69
  "pino-pretty": "^10.2.0",
70
70
  "rfdc": "^1.3.0",
71
71
  "ua-parser-js": "^1.0.36",
72
- "@platformatic/client": "1.13.2",
73
- "@platformatic/swagger-ui-theme": "1.13.2",
74
- "@platformatic/telemetry": "1.13.2",
75
- "@platformatic/utils": "1.13.2",
76
- "@platformatic/generators": "1.13.2",
77
- "@platformatic/config": "1.13.2"
72
+ "@platformatic/client": "1.13.4",
73
+ "@platformatic/generators": "1.13.4",
74
+ "@platformatic/swagger-ui-theme": "1.13.4",
75
+ "@platformatic/config": "1.13.4",
76
+ "@platformatic/telemetry": "1.13.4",
77
+ "@platformatic/utils": "1.13.4"
78
78
  },
79
79
  "standard": {
80
80
  "ignore": [