N
Nuxt3y ago
Kerensky

How to get in module the server host and port being used?

I'm working on updating a Nuxt 2 module I've made for Nuxt 3, but am running into an issue. How can you get access to the server's host and port being used in a module's setup function? In Nuxt 2 I could get it with nuxt.options.server.host and nuxt.options.server.port, but I can't seem to find the Nuxt 3 equivalent. I appreciate any help.
1 Reply
harlan
harlan3y ago
use the listen hook

Did you find this page helpful?