零散修改优化
This commit is contained in:
1 parent
c91326bada
commit
150cff53e3
38 files changed
+2638
-724
No files matched your search
+2
-2
@@ -9,12 +9,12 @@ const app = express();
|
||||
const server = http.createServer(app);
|
||||
const io = new Server(server, {
|
||||
cors: {
|
||||
origin: process.env.FRONTEND_DIST ? false : 'http://localhost:5173',
|
||||
origin: process.env.FRONTEND_DIST ? false : ['http://localhost:5173', 'http://localhost:3000'],
|
||||
methods: ['GET', 'POST']
|
||||
}
|
||||
});
|
||||
|
||||
const PORT = process.env.PORT || 3000;
|
||||
const PORT = process.env.PORT || 15002;
|
||||
|
||||
// Auto-detect frontend dist path
|
||||
let FRONTEND_DIST = process.env.FRONTEND_DIST;
|
||||
|
||||
Reference in new issue
Block a user