edgeone 1.0.26 → 1.0.28
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/edgeone-dist/cli.js +8 -4
- package/package.json +1 -1
package/edgeone-dist/cli.js
CHANGED
|
@@ -142949,7 +142949,7 @@ var yargs_default = Yargs;
|
|
|
142949
142949
|
// package.json
|
|
142950
142950
|
var package_default = {
|
|
142951
142951
|
name: "edgeone",
|
|
142952
|
-
version: "1.0.
|
|
142952
|
+
version: "1.0.28",
|
|
142953
142953
|
description: "Command-line interface for TencentCloud Pages Functions",
|
|
142954
142954
|
bin: {
|
|
142955
142955
|
edgeone: "./edgeone-bin/edgeone.js"
|
|
@@ -153297,7 +153297,7 @@ async function PagesDevServer(devConfig) {
|
|
|
153297
153297
|
"Access-Control-Allow-Credentials": "true",
|
|
153298
153298
|
"Access-Control-Allow-Origin": corsPath,
|
|
153299
153299
|
"Access-Control-Allow-Methods": "OPTIONS,HEAD,DELETE,PUT,POST,PATCH,GET,TRACE,*",
|
|
153300
|
-
"Access-Control-Allow-Headers": "content-type,*"
|
|
153300
|
+
"Access-Control-Allow-Headers": "content-type,authorization,x-refresh-token,*"
|
|
153301
153301
|
});
|
|
153302
153302
|
return res.end();
|
|
153303
153303
|
}
|
|
@@ -153385,7 +153385,10 @@ async function PagesDev(yargs) {
|
|
|
153385
153385
|
normalLog("Dev server running in raw mode...");
|
|
153386
153386
|
}
|
|
153387
153387
|
if (yargs.fePort) {
|
|
153388
|
-
devConfig.
|
|
153388
|
+
devConfig.fePort = yargs.fePort;
|
|
153389
|
+
}
|
|
153390
|
+
if (yargs.port) {
|
|
153391
|
+
devConfig.port = yargs.port;
|
|
153389
153392
|
}
|
|
153390
153393
|
return await PagesDevServer(devConfig).then(() => {
|
|
153391
153394
|
setTimeout(
|
|
@@ -153719,7 +153722,8 @@ var createPagesDeployment = async (opts) => {
|
|
|
153719
153722
|
Provider: "Upload",
|
|
153720
153723
|
Env: env3,
|
|
153721
153724
|
DistType: isZip ? "Zip" : "Folder",
|
|
153722
|
-
TempBucketPath: targetPath
|
|
153725
|
+
TempBucketPath: targetPath,
|
|
153726
|
+
BuildFrom: "CLI"
|
|
153723
153727
|
},
|
|
153724
153728
|
throwOnError: false
|
|
153725
153729
|
});
|