nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.15k stars 630 forks source link

markdown doesn't reload in devcontainer #2873

Open endquote opened 5 days ago

endquote commented 5 days ago

Environment


Reproduction

Describe the bug

In a vscode devcontainer, changes to markdown files do not trigger hot reload. But changes to .vue files do.

Additional context

No response

Logs

farnabaz commented 3 days ago

Seems that listhen does not emit upgrade event inside the dev container, therefore web socket is not able to broadcast events.

One solution is to drop listhen and directly use ws server here https://github.com/nuxt/content/blob/34f8d071d7979d0f8b5384503f588e8dcb78b48f/src/utils.ts#L126