redis not req for local dev
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user