Vite
Vite is a modern frontend building 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 to output highly optimized static resources for production.
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 repository).
2. Import the project to EdgeOne Pages. If you have no Vite project, you can use Vite React Template.
3. EdgeOne Pages detects that you are using Vite and enables the appropriate correct configuration for your deployment.
4. Your application 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 application is deployed (example: vite-react.edgeone.app).
npm install -g edgeoneedgeone loginedgeone pages init
After successful deployment, click the Console URL to access building information and deployment URLs.

