function createHook(hook) {
					return async function callWebSocketHook(...args) {
						const { default: handler } = await viteServer.ssrLoadModule(
							handlerModule(router),
						);
						return await handler.__websocket__?.[hook]?.(...args);
					};
				}
Added here to support static asset imports. Vite transforms these using the server base path. During development it expects that the file system will be available. So we need to serve the whole src diectory (including node_modules) during dev.