cli
cli copied to clipboard
respect the addredd and port sent to --inspect
🔗 Linked issue
Resolves #403
❓ Type of change
respect the --inspect
argument that is passed to nuxi dev
- [ ] 📖 Documentation (updates to the documentation or readme)
- [x] 🐞 Bug fix (a non-breaking change that fixes an issue)
- [x] 👌 Enhancement (improving an existing functionality)
- [ ] ✨ New feature (a non-breaking change that adds functionality)
- [ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
- [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
📚 Description
It's not easy to attach the debugger to a nuxt running in docker beacuse --inspect is passed without host (typically 0.0.0.0) and port. it now passes the argument as it's passed by the user
Typical values could be
- nuxi dev --inspect
- nuxi dev --inspect=0.0.0.0
- nuxi dev --inspect=9229
- nuxi dev --inspect=0.0.0.0:9229
at the moment only the first option works but all the other are supported (just filtered out)