MCPcopy
hub / github.com/vitejs/vite / configureServer

Function configureServer

playground/hmr-ssr/__tests__/hmr-ssr.spec.ts:60–69  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

58 return {
59 name: 'hot-events',
60 configureServer(server) {
61 server.environments.ssr.hot.on(
62 'vite:client:connect',
63 () => hotEventCounts.connect++,
64 )
65 server.environments.ssr.hot.on(
66 'vite:client:disconnect',
67 () => hotEventCounts.disconnect++,
68 )
69 },
70 }
71 }
72

Callers

nothing calls this directly

Calls 1

onMethod · 0.65

Tested by

no test coverage detected