Fix jwt-token

This commit is contained in:
2025-08-17 05:52:32 +02:00
parent bd375b52a1
commit 1332d58ae9
2 changed files with 2 additions and 2 deletions

View File

@@ -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'
);