From 0b9429bf89eafa48a450467438d9b705255ee136 Mon Sep 17 00:00:00 2001 From: M Reinhard <91672894+michaelreinhard1@users.noreply.github.com> Date: Sun, 28 Sep 2025 00:43:56 +0200 Subject: [PATCH] docs: clarify nitro cloudflare-durable preset in WebSocket setup Fix Realtime & WebSockets docs by adding required cloudflare-durable preset. The hub.workers TypeScript hint says it should automatically set the preset to cloudflare-durable when nitro nitro.experimental.websocket is enabled, but this doesn't actually happen during build. --- docs/content/docs/2.features/realtime.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/content/docs/2.features/realtime.md b/docs/content/docs/2.features/realtime.md index c4c4c712..ed0b03f5 100644 --- a/docs/content/docs/2.features/realtime.md +++ b/docs/content/docs/2.features/realtime.md @@ -11,6 +11,7 @@ Enable [Nitro's experimental WebSocket](https://nitro.build/guide/websocket) sup ```ts [nuxt.config.ts] export default defineNuxtConfig({ nitro: { + preset: 'cloudflare-durable', experimental: { websocket: true }