Fix socket.io proxying and remove gmail package lock
This commit is contained in:
parent
4ace103937
commit
05ae58ccb8
File diff suppressed because it is too large
Load Diff
|
|
@ -3,6 +3,10 @@ const nextConfig = {
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
return [
|
return [
|
||||||
|
{
|
||||||
|
source: '/socket.io/:path*',
|
||||||
|
destination: 'http://whatsapp-gateway.ai-agents.svc.cluster.local:5001/socket.io/:path*'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
source: '/proxy/whatsapp/:path*',
|
source: '/proxy/whatsapp/:path*',
|
||||||
destination: 'http://whatsapp-gateway.ai-agents.svc.cluster.local:5001/:path*'
|
destination: 'http://whatsapp-gateway.ai-agents.svc.cluster.local:5001/:path*'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
const socket = io({ path: '/proxy/whatsapp/socket.io' });
|
const socket = io();
|
||||||
|
|
||||||
// UI Elements
|
// UI Elements
|
||||||
const statusBadge = document.getElementById('status-badge');
|
const statusBadge = document.getElementById('status-badge');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue