Static GitHub Issues

[2465] How does the outside get the router instance

prev: some question for npm run build
next: Error deploying to AWS Elastic Beanstalk

Hi I want to use router. BeforeEach, but I don't know how to get the router instance outside

thanks

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2140">#c2140</a>)</em></sub></div>