Static GitHub Issues

[1654] trigger middleware at first time?

prev: Nuxt.js problem, HELP!
next: ssr loading other pages' js

I want to change my domain in every page, so I use the middleware

but you know the middleware trigger in every route changed, not include the first time open the page!

so, how I can realize this?

<!--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/c1480">#c1480</a>)</em></sub></div>