Port numaraları değişti.
This commit is contained in:
@@ -117,7 +117,7 @@ const app = express();
|
||||
const server = createServer(app);
|
||||
const io = new Server(server, {
|
||||
cors: {
|
||||
origin: "http://localhost:5173",
|
||||
origin: "http://localhost:5005",
|
||||
methods: ["GET", "POST"]
|
||||
}
|
||||
});
|
||||
@@ -125,7 +125,7 @@ const io = new Server(server, {
|
||||
// Export io for use in other modules
|
||||
export { io };
|
||||
|
||||
const PORT = process.env.PORT || 3001;
|
||||
const PORT = process.env.PORT || 3005;
|
||||
|
||||
// ES Module equivalent of __dirname
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
|
||||
Reference in New Issue
Block a user