redis not req for local dev

This commit is contained in:
PxlLoewe
2025-10-04 21:58:34 +02:00
parent a2c320ddbe
commit 1919227cd4
3 changed files with 13 additions and 6 deletions

View File

@@ -18,7 +18,10 @@ const app = express();
const server = createServer(app);
export const io = new Server(server, {
adapter: createAdapter(pubClient, subClient),
adapter:
process.env.REDIS_HOST && process.env.REDIS_PORT
? createAdapter(pubClient, subClient)
: undefined,
cors: {},
});
io.use(jwtMiddleware);