@constructive-io/cli 5.10.4 → 5.10.6
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/commands/server.js +9 -0
- package/esm/commands/server.js +9 -0
- package/package.json +7 -7
package/commands/server.js
CHANGED
|
@@ -184,6 +184,15 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
184
184
|
for (const [key, value] of Object.entries(options)) {
|
|
185
185
|
log.debug(`${key}: ${JSON.stringify(value)}`);
|
|
186
186
|
}
|
|
187
|
+
// Debug: Log API routing configuration
|
|
188
|
+
const apiOpts = options.api || {};
|
|
189
|
+
log.debug(`📡 API Routing: isPublic=${apiOpts.isPublic}, enableServicesApi=${apiOpts.enableServicesApi}`);
|
|
190
|
+
if (apiOpts.isPublic === false) {
|
|
191
|
+
log.debug(` Header-based routing enabled (X-Api-Name, X-Database-Id, X-Meta-Schema)`);
|
|
192
|
+
}
|
|
193
|
+
if (apiOpts.metaSchemas?.length) {
|
|
194
|
+
log.debug(` Meta schemas: ${apiOpts.metaSchemas.join(', ')}`);
|
|
195
|
+
}
|
|
187
196
|
log.success('🚀 Launching Server...\n');
|
|
188
197
|
(0, graphql_server_1.GraphQLServer)(options);
|
|
189
198
|
};
|
package/esm/commands/server.js
CHANGED
|
@@ -182,6 +182,15 @@ export default async (argv, prompter, _options) => {
|
|
|
182
182
|
for (const [key, value] of Object.entries(options)) {
|
|
183
183
|
log.debug(`${key}: ${JSON.stringify(value)}`);
|
|
184
184
|
}
|
|
185
|
+
// Debug: Log API routing configuration
|
|
186
|
+
const apiOpts = options.api || {};
|
|
187
|
+
log.debug(`📡 API Routing: isPublic=${apiOpts.isPublic}, enableServicesApi=${apiOpts.enableServicesApi}`);
|
|
188
|
+
if (apiOpts.isPublic === false) {
|
|
189
|
+
log.debug(` Header-based routing enabled (X-Api-Name, X-Database-Id, X-Meta-Schema)`);
|
|
190
|
+
}
|
|
191
|
+
if (apiOpts.metaSchemas?.length) {
|
|
192
|
+
log.debug(` Meta schemas: ${apiOpts.metaSchemas.join(', ')}`);
|
|
193
|
+
}
|
|
185
194
|
log.success('🚀 Launching Server...\n');
|
|
186
195
|
server(options);
|
|
187
196
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/cli",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.6",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive CLI",
|
|
6
6
|
"main": "index.js",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"ts-node": "^10.9.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@constructive-io/graphql-codegen": "^2.28.
|
|
49
|
-
"@constructive-io/graphql-env": "^2.9.
|
|
50
|
-
"@constructive-io/graphql-explorer": "^2.15.
|
|
51
|
-
"@constructive-io/graphql-server": "^2.19.
|
|
52
|
-
"@constructive-io/knative-job-service": "^0.9.
|
|
48
|
+
"@constructive-io/graphql-codegen": "^2.28.4",
|
|
49
|
+
"@constructive-io/graphql-env": "^2.9.2",
|
|
50
|
+
"@constructive-io/graphql-explorer": "^2.15.2",
|
|
51
|
+
"@constructive-io/graphql-server": "^2.19.6",
|
|
52
|
+
"@constructive-io/knative-job-service": "^0.9.6",
|
|
53
53
|
"@inquirerer/utils": "^3.2.0",
|
|
54
54
|
"@pgpmjs/core": "^4.17.0",
|
|
55
55
|
"@pgpmjs/logger": "^1.5.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"postgres",
|
|
76
76
|
"graphile"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "eb66bc6e0ee3f0bcfcfeda2b5885b05c153de517"
|
|
79
79
|
}
|