edgeone 1.1.4 → 1.1.7

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/README.md CHANGED
@@ -66,9 +66,9 @@ After completing initialization, enter the local development stage:
66
66
  edgeone pages dev
67
67
  ```
68
68
 
69
- Executing the command will start a service on the local port 8088 by default. The Pages Functions service and the Pages project run on the same port.
69
+ The run command by default creates a service locally on port 8088. Both the Pages Function service and the Pages project service run on the same port, with no need for additional proxying.
70
70
 
71
- Visit the frontend at `http://localhost:8088/`, and call your functions directly using their file paths under `edge-functions` or `node-functions`.
71
+ You can access the front-end page via `http://localhost:8088/`. In the front-end project, use the Fetch API directly, where the access path is the path of function files in folder `edge-functions` or `node-functions`.
72
72
 
73
73
  ```javascript
74
74
  // ./node-functions/api/my-functions.js
@@ -94,7 +94,7 @@ If you need to link a project that does not exist, you can also create a new pro
94
94
 
95
95
  ### 6. Deploy
96
96
 
97
- If your project is created via "direct upload", you can also deploy it directly to the Pages platform locally by executing the following command:
97
+ Build locally and deploy to EdgeOne Pages. If you need to link an existing project, it must be of the direct upload type.
98
98
 
99
99
  ```plaintext
100
100
  edgeone pages deploy [<directoryOrZip>] [-n <projectName>] [-e <env>]
@@ -107,8 +107,8 @@ edgeone pages deploy [<directoryOrZip>] [-n <projectName>] [-e <env>]
107
107
  - `-e, --env`: Environment to deploy to, choices: 'production' or 'preview' (default: 'production')
108
108
 
109
109
  Note:
110
- - By default, when executing deploy, the CLI will automatically build and package frontend code, `node-functions`, and `edge-functions` into the `.edgeone` folder and deploy to Pages.
111
- - If you choose to manually build the project, you need to copy the related folders of Pages Functions and the project's `package.json` file to dist (suppose the output directory is dist) after building, then rerun `edgeone pages deploy ./dist`.
110
+ - When you execute the deploy command, the CLI will automatically build and deploy your project.
111
+ - If you build manually, you need to place the Pages Functions related folders and `package.json` into the output directory (such as `dist`), and then run `edgeone pages deploy ./dist`.
112
112
 
113
113
  #### Usage Examples
114
114
 
@@ -154,8 +154,8 @@ edgeone pages deploy [<directoryOrZip>] -n <projectName> -t <token> [-e <env>]
154
154
  - `-t, --token`: API Token for CI/CD pipelines (required for automated deployments)
155
155
 
156
156
  Note:
157
- - By default, when executing deploy, the CLI will automatically build and package frontend code, `node-functions`, and `edge-functions` into the `.edgeone` folder and deploy to Pages.
158
- - If you choose to manually build the project, you need to copy the related folders of Pages Functions and the project's `package.json` file to dist (suppose the output directory is dist) after building, then rerun `edgeone pages deploy ./dist`.
157
+ - By default, when executing deploy, the CLI automatically builds and packages frontend code, `node-functions`, and `edge-functions` into the `.edgeone` folder and deploy to Pages.
158
+ - If you choose to build the project manually, you need to manually copy the Pages Functions related folder and `package.json` to dist (suppose the output directory is dist), then rerun `edgeone pages deploy ./dist`.
159
159
 
160
160
  #### CI/CD Pipeline Examples
161
161
 
@@ -191,4 +191,4 @@ _To access the China site documentation, please click [here](https://edgeone.clo
191
191
 
192
192
  ## Contact
193
193
 
194
- If you need technical support, please [contact us](https://edgeone.ai/contact?source=edgeone-cli).
194
+ If you need technical support, please [contact us](https://pages.edgeone.ai/contact?source=edgeone-cli).