mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
undo ws change on client.
This commit is contained in:
parent
667a54e9d9
commit
cffeedd6b5
@ -34,7 +34,7 @@ export class WebsocketReconnector extends ReconnectorAbstract {
|
||||
}
|
||||
|
||||
let url = this._state.url
|
||||
url = url.replace(/^http/, 'ws').replace(/\/+$/, '') + '/ws'
|
||||
url = url.replace(/^http/, 'ws').replace(/\/+$/, '') + '/api/ws'
|
||||
|
||||
const token = this._state.token
|
||||
if (token) {
|
||||
|
@ -16,11 +16,6 @@ export default defineConfig({
|
||||
server: {
|
||||
port: 3001,
|
||||
proxy: process.env.NEKO_HOST ? {
|
||||
'/ws': {
|
||||
target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
||||
changeOrigin: true,
|
||||
ws: true
|
||||
},
|
||||
'/api': {
|
||||
target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
||||
changeOrigin: true,
|
||||
|
Loading…
Reference in New Issue
Block a user