EdgeOne Pages
EdgeOne Pages is a deployment platform developed by Tencent. It supports server capabilities such as SSR and HTML streaming.
See also: EdgeOne Pages > Vike.
Get started
1. Install
Install the EdgeOne Vite adapter:
npm install @edgeone/vitepnpm add @edgeone/vitebun add @edgeone/viteyarn add @edgeone/vite// vite.config.js
import vike from 'vike/plugin'
import edgeone from '@edgeone/vite'
export default {
plugins: [vike(), edgeone({ serverWrapper: 'vike' })]
}The build command remains
$ vike build.
2. Deploy
Git Connection Deployment
Push your project to GitHub or GitLab, then connect it to EdgeOne Pages.
CLI Deployment
Install the EdgeOne CLI:
npm install -g edgeonepnpm add -g edgeonebun add --global edgeoneyarn global add edgeoneThen deploy:
edgeone pages deploySettings
The edgeone() Vite plugin accepts the following optional configurations:
serverWrapper('vike' | 'autoDetect' | 'ssrRender' | 'webHandler'): Server runtime mode. Set to'vike'when deploying Vike projects.'autoDetect'will automatically select based on whether the Vike plugin is used.clientBuildDir(string): Client build output directory. Overrides the defaultdist/clientdetection.serverBuildDir(string): Server build output directory. Overrides the defaultdist/serverdetection.serverEntry(string): Server entry file path. Overrides the defaultentry-server.jsdetection.routes(string[]): Custom route list (e.g.,['/', '/about']). When not provided, Vike automatically scans thepages/directory.ssr(boolean): Enable SSR. By default, the adapter infers this based on your project.
See also: EdgeOne Pages > Vike.