#Nitro watch file (txt)
3 messages · Page 1 of 1 (latest)
Hi @storm widget. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
I'm sorry, but the knowledge sources do not provide a way to watch a file and restart only the Nitro server without restarting the whole Nuxt application. The watch property in nuxt.config is designed to restart the entire Nuxt dev server when matching files change, not just Nitro — this is confirmed in both Nuxt 3 and 4 documentation:
The watch property lets you define patterns that will restart the Nuxt dev server when changed.
— Nuxt 3 Watch Config, Nuxt 4 Watch Config
There is no mention of a nitro.devServer.watch option or any Nitro-specific watcher that would only restart Nitro independently of Nuxt in the provided documentation.