Fixed issue socket-io cannot be connected in production build on web

This commit is contained in:
Alex Tran 2022-06-19 09:12:43 -05:00
parent 1e3464fe47
commit c4247bfea3
No known key found for this signature in database
GPG key ID: E4954BC787B85C8A
3 changed files with 14 additions and 1 deletions

View file

@ -10,6 +10,13 @@ const config = {
methodOverride: {
allowed: ['PATCH', 'DELETE'],
},
vite: {
resolve: {
alias: {
'xmlhttprequest-ssl': './node_modules/engine.io-client/lib/xmlhttprequest.js',
},
},
},
},
};