N
Nuxt3mo ago
kiiya

Running nuxt dev without a port.

Is it possible to run nuxt dev server with hmr working without specifying a port? I have a vhost proxy set to example-domain.local and it's working as intended but hmr is not working and I have to visit example-domain.local:3000 to get hmr working. Errors:
client:535 WebSocket connection to 'ws://example-domain.local/_nuxt/' failed:
Uncaught (in promise) DOMException: Failed to construct 'WebSocket': The URL 'ws://localhost:undefined/_nuxt/' is invalid.
at setupWebSocket (http://houseofsherehe.local/_nuxt/@vite/client:535:19)
at fallback (http://houseofsherehe.local/_nuxt/@vite/client:508:16)
at WebSocket.<anonymous> (http://houseofsherehe.local/_nuxt/@vite/client:551:7)
client:535 WebSocket connection to 'ws://example-domain.local/_nuxt/' failed:
Uncaught (in promise) DOMException: Failed to construct 'WebSocket': The URL 'ws://localhost:undefined/_nuxt/' is invalid.
at setupWebSocket (http://houseofsherehe.local/_nuxt/@vite/client:535:19)
at fallback (http://houseofsherehe.local/_nuxt/@vite/client:508:16)
at WebSocket.<anonymous> (http://houseofsherehe.local/_nuxt/@vite/client:551:7)
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server