undo ws change on client.

This commit is contained in:
Miroslav Šedivý 2024-07-21 15:23:31 +02:00
parent 667a54e9d9
commit cffeedd6b5
2 changed files with 1 additions and 6 deletions

View File

@ -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) {

View File

@ -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,