Vite
Vite is a modern frontend build tool designed to significantly improve development experience and building efficiency. Its core architecture consists of two parts:
1. Development server: Based on Native ES modules, it offers feature-rich development support, including extremely fast module hot replacement (HMR).
2. Build command: Pack based on Rollup, output highly optimized static resources suitable for production environment.
The following will introduce how to use the Vite framework to deploy a static website to EdgeOne Pages.
Deploying a Static Website
Deploying with Git
1. Push your code to a remote repository (GitHub, Gitee, Coding).
2. Import the project to EdgeOne Pages. If you have no Vite project, you can use Vite React Template.
3. EdgeOne Pages will detect you are using Vite and enable the appropriate configured correctly deploy.
4. Your app is deployed (example: vite-react.edgeone.app).

After your project is imported and deployed, all submissions to the designated production branch (defaults to "main") will automatically trigger a new deployment. View Git integration to learn more.
CLI Deployment
1. Install EdgeOne CLI and initialize.
2. Run
edgeone pages deploy -n <project name> to deploy.3. Your app is deployed (example: vite-react.edgeone.app).
npm install -g edgeoneedgeone loginedgeone pages deploy -n vite-react-demo
After successful deployment, click the Console URLs to access specific building information and URLs after deployment.

