edgeone 1.0.27 → 1.0.29

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.
@@ -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.27",
142952
+ version: "1.0.29",
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
  }
@@ -153722,7 +153722,8 @@ var createPagesDeployment = async (opts) => {
153722
153722
  Provider: "Upload",
153723
153723
  Env: env3,
153724
153724
  DistType: isZip ? "Zip" : "Folder",
153725
- TempBucketPath: targetPath
153725
+ TempBucketPath: targetPath,
153726
+ BuildFrom: "CLI"
153726
153727
  },
153727
153728
  throwOnError: false
153728
153729
  });
@@ -154027,11 +154028,7 @@ var deployFolderOrZipToEdgeOne = async (localPath, env3 = "Production") => {
154027
154028
  projectId,
154028
154029
  env3
154029
154030
  );
154030
- okLog(`Deployment successful!`);
154031
- okLog(`Temporary URL: ${structuredResult.url}`);
154032
- console.log(`EDGEONE_DEPLOY_URL=${structuredResult.url}`);
154033
- console.log(`EDGEONE_DEPLOY_TYPE=${structuredResult.type}`);
154034
- console.log(`EDGEONE_PROJECT_ID=${structuredResult.projectId}`);
154031
+ okLog(`Deployment to EdgeOne Pages completed successfully! To view your project's live URL, please visit the EdgeOne Pages Console.`);
154035
154032
  return structuredResult;
154036
154033
  } catch (error3) {
154037
154034
  throw error3;
@@ -154093,7 +154090,6 @@ var PagesDeploy = async (argv) => {
154093
154090
  `Deploying ${folderOrZipPath} to project ${projectName} (${deployEnv} environment)...`
154094
154091
  );
154095
154092
  const result = await deployFolderOrZipToEdgeOne(folderOrZipPath, deployEnv);
154096
- okLog(`Successfully deployed to ${result.url}`);
154097
154093
  } catch (error3) {
154098
154094
  errorLog(`Deployment failed: ${error3.message}`);
154099
154095
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edgeone",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "Command-line interface for TencentCloud Pages Functions",
5
5
  "bin": {
6
6
  "edgeone": "./edgeone-bin/edgeone.js"