@cloudbase/manager-node 5.6.2 → 5.6.3
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/CHANGELOG.md +6 -0
- package/lib/function/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/function/index.js
CHANGED
|
@@ -233,8 +233,8 @@ function configToParams(options) {
|
|
|
233
233
|
params.Code.ImageConfig = buildImageConfig(imageConfig);
|
|
234
234
|
}
|
|
235
235
|
// 第三阶段:统一应用默认值
|
|
236
|
-
const runtime = params.Runtime || '
|
|
237
|
-
return Object.assign({ Handler: func.handler || 'index.main',
|
|
236
|
+
const runtime = params.Runtime || 'Nodejs20.19';
|
|
237
|
+
return Object.assign({ Handler: func.handler || 'index.main', Runtime: 'Nodejs20.19', MemorySize: 256, InstallDependency: isNodeFunction(runtime) ? 'TRUE' : 'FALSE' }, params);
|
|
238
238
|
}
|
|
239
239
|
class FunctionService {
|
|
240
240
|
constructor(environment) {
|