Static GitHub Issues

[2161] Suggestion: server middleware watch and restart in dev mode

prev: a css problem when running in mobile
next: Nuxt introduction problem

I suggest to add build.serverWatch option that will watch specified folders and restart nuxt server middleware in dev mode.

Now to rebuild nuxt server middleware you should change nuxt.config.js file.

Now to solve this issue I installed nodemon and changed package.json to

{
  "scripts": {
    "dev": "nodemon --watch api --exec \"nuxt\"",
  },
}

So I suggest to add build.serverWatch option in nuxt.config.js file to watch and restart nuxt server middleware in dev mode.

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