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
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',
},
},
},
},
};