@adobe/helix-deploy 9.0.7 → 9.0.8
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 +7 -0
- package/package.json +1 -1
- package/src/DevelopmentServer.js +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [9.0.8](https://github.com/adobe/helix-deploy/compare/v9.0.7...v9.0.8) (2023-02-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* make development server work with helix-shared-secrets ([#505](https://github.com/adobe/helix-deploy/issues/505)) ([a0b3eb0](https://github.com/adobe/helix-deploy/commit/a0b3eb068690a1c8980703ffc724017740cd5c01))
|
|
7
|
+
|
|
1
8
|
## [9.0.7](https://github.com/adobe/helix-deploy/compare/v9.0.6...v9.0.7) (2023-02-14)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/DevelopmentServer.js
CHANGED
|
@@ -100,7 +100,7 @@ export default class DevelopmentServer {
|
|
|
100
100
|
* @returns this
|
|
101
101
|
*/
|
|
102
102
|
async init() {
|
|
103
|
-
// load the action params
|
|
103
|
+
// load the action params
|
|
104
104
|
let pkgJson = {};
|
|
105
105
|
try {
|
|
106
106
|
pkgJson = await fse.readJson(path.resolve(this._cwd, 'package.json'));
|
|
@@ -136,7 +136,13 @@ export default class DevelopmentServer {
|
|
|
136
136
|
// use google adapter since it already supports express req/res types
|
|
137
137
|
process.env.K_SERVICE = `${config.packageName}--${config.name}`;
|
|
138
138
|
process.env.K_REVISION = config.version;
|
|
139
|
-
this._handler = createAdapter({
|
|
139
|
+
this._handler = createAdapter({
|
|
140
|
+
factory: () => (req, ctx) => {
|
|
141
|
+
// adjust runtime in order for the shared-secrets plugin to accept unsupported the runtime.
|
|
142
|
+
ctx.runtime.name = 'simulate';
|
|
143
|
+
return this._main(req, ctx);
|
|
144
|
+
},
|
|
145
|
+
});
|
|
140
146
|
this.params = config.params;
|
|
141
147
|
return this;
|
|
142
148
|
}
|