Skip to content

Commit

Permalink
Merge pull request #56 from Cleo-Tech/53-immagini-da-mobile
Browse files Browse the repository at this point in the history
Update index.ts
  • Loading branch information
fmanto01 authored Oct 4, 2024
2 parents 7d8b490 + 2a3a24b commit bca5c70
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,19 @@ const server = createServer(app);
const io = new Server(server, {
cors: {
origin: [
'http://localhost:5173', 'http://127.0.0.1:5173',
'https://scoprimi.onrender.com', 'https://preprod-scoprimi.onrender.com',
'*.cloudflareinsights.com'
'http://localhost:5173',
'http://127.0.0.1:5173',
'https://scoprimi.onrender.com',
'https://preprod-scoprimi.onrender.com',
'https://static.cloudflareinsights.com' // Aggiungi Cloudflare Insights
],
methods: ['GET', 'POST'],
credentials: true
},
// 25000 e 20000 sono i valori di default
pingInterval: 25000 * 2,
pingTimeout: 20000 * 5,
});

setupAPI(app);
async function init() {
try {
Expand Down

0 comments on commit bca5c70

Please sign in to comment.