Vue Router

⚠

While it's possible to use Vue Router we recommend against it: Vike's built-in router has many features that Vue Router doesn't (and cannot) offer.

That said, if you have an existing app using Vue Router that you want to migrate to Vike, then it makes sense to start using Vike with Vue Router and, after your migration is done, to progressively migrate from Vue Router to Vike's router.

Create a new feature request if you need a Vue Router feature that Vike's router is missing.

We believe that the frontend routing should be completely owned by the frontend framework. Trying to seperate concerns in that regard leads to a frankenstein architecture.

Example of using Vike with Vue Router (shallow integration without using onBeforeRoute()):

Contribution welcome to explore deep integration using onBeforeRoute().