|
|
@@ -102,19 +102,8 @@ if(import.meta.env.PROD){
|
|
|
},
|
|
|
fetch: app.fetch
|
|
|
}
|
|
|
-}else{
|
|
|
+}else if(!import.meta.hot){
|
|
|
new SocketIOServer({});
|
|
|
exportDefault = app;
|
|
|
}
|
|
|
export default exportDefault
|
|
|
-
|
|
|
-// export default {
|
|
|
-// httpServer: (httpServer) => {
|
|
|
-// const io = new SocketIOServer(httpServer);
|
|
|
-// console.log(io)
|
|
|
-// io.on('connection', (socket) => {
|
|
|
-// console.log(`Socket.IO client connected: ${socket.id}`)
|
|
|
-// })
|
|
|
-// },
|
|
|
-// fetch: app.fetch
|
|
|
-// }
|