Fix jwt-token
This commit is contained in:
@@ -16,7 +16,7 @@ export const SocketProvider = ({ children }) => {
|
||||
if (isAuthenticated) {
|
||||
// Initialize socket connection
|
||||
const newSocket = io(process.env.NODE_ENV === 'production'
|
||||
? window.location.origin
|
||||
? window.location.origin + '/drones'
|
||||
: 'http://localhost:3001'
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user