Add to existing app

To get familiar with Vike, we recommend to read the React Tour or Vue Tour, or to play with the boilerplates ($ npm init vike@latest).

To add Vike to an existing Vite app:

  1. Add Vike to your vite.config.js.

  2. Optionally, if you use a server, add the Vike server middleware.

  3. Define and

  4. Create your first .page.js file.