-
-
Notifications
You must be signed in to change notification settings - Fork 704
Open
Description
Environment
- Operating System: Linux
- Node Version: v22.16.0
- Nuxt Version: 3.17.6
- CLI Version: 3.25.1
- Nitro Version: 2.11.13
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, devtools, css, modules, runtimeConfig, nitro, hooks
- Runtime Modules: @nuxt/[email protected], @nuxt/[email protected], @nuxt/[email protected], @nuxt/[email protected], @nuxt/[email protected], @nuxt/[email protected], @nuxt/[email protected], @pinia/[email protected], @prisma/[email protected]
- Build Modules: -
Version
v3
Reproduction
https://jvmikmqoyw.github.stackblitz.io
Description
In @nuxt/content, the dev module sets runtimeConfig.public.content.wsUrl = listener.url.replace(...) unconditionally.
This makes it impossible to override wsUrl using nuxt.config.ts or hooks, as the value is always replaced during module init. Needed for non local dev installs.
Expected behavior:
If the user has already set public.content.wsUrl, the module should not overwrite it.
Suggested fix:
if (!nitro.options.runtimeConfig.public?.content?.wsUrl) {
nitro.options.runtimeConfig.public.content.wsUrl = listener.url.replace("http", "ws")
}
happens in:
- node_modules/@nuxt/content/dist/module.mjs
- node_modules/@nuxt/content/dist/module.cjs
Additional context
No response
Logs
Metadata
Metadata
Assignees
Labels
No labels