diff --git a/apps/dapp/.env.mainnet b/apps/dapp/.env.mainnet index d6b32e484..42f1fcb71 100644 --- a/apps/dapp/.env.mainnet +++ b/apps/dapp/.env.mainnet @@ -40,10 +40,5 @@ NEXT_PUBLIC_KVPK_API_BASE=https://kvpk.daodao.zone # Kado API NEXT_PUBLIC_KADO_API_KEY=bcee9402-d79f-427b-bafd-dd111e4ce287 -# WebSockets API -NEXT_PUBLIC_WEB_SOCKET_PUSHER_APP_KEY=daodao -NEXT_PUBLIC_WEB_SOCKET_PUSHER_HOST=ws.daodao.zone -NEXT_PUBLIC_WEB_SOCKET_PUSHER_PORT=443 - # Web Push NEXT_PUBLIC_WEB_PUSH_PUBLIC_KEY=BIB5MGacpO1AsiCWPIKeJo3VUz2c9UPvwNuHyxVT+cROGstU3wJs++GyQFmONZjBN9aqdqFi8j2NSnmTPl/PA2w= diff --git a/apps/dapp/.env.testnet b/apps/dapp/.env.testnet index 8f1be349d..8f3317a64 100644 --- a/apps/dapp/.env.testnet +++ b/apps/dapp/.env.testnet @@ -40,10 +40,5 @@ NEXT_PUBLIC_KVPK_API_BASE=https://kvpk.daodao.zone # Kado API NEXT_PUBLIC_KADO_API_KEY=bcee9402-d79f-427b-bafd-dd111e4ce287 -# WebSockets API -NEXT_PUBLIC_WEB_SOCKET_PUSHER_APP_KEY=daodao -NEXT_PUBLIC_WEB_SOCKET_PUSHER_HOST=ws.daodao.zone -NEXT_PUBLIC_WEB_SOCKET_PUSHER_PORT=443 - # Web Push NEXT_PUBLIC_WEB_PUSH_PUBLIC_KEY=BIB5MGacpO1AsiCWPIKeJo3VUz2c9UPvwNuHyxVT+cROGstU3wJs++GyQFmONZjBN9aqdqFi8j2NSnmTPl/PA2w= diff --git a/apps/sda/.env.mainnet b/apps/sda/.env.mainnet index e257d11fd..778ceca3e 100644 --- a/apps/sda/.env.mainnet +++ b/apps/sda/.env.mainnet @@ -34,10 +34,5 @@ NEXT_PUBLIC_KVPK_API_BASE=https://kvpk.daodao.zone # Kado API NEXT_PUBLIC_KADO_API_KEY=bcee9402-d79f-427b-bafd-dd111e4ce287 -# WebSockets API -NEXT_PUBLIC_WEB_SOCKET_PUSHER_APP_KEY=daodao -NEXT_PUBLIC_WEB_SOCKET_PUSHER_HOST=ws.daodao.zone -NEXT_PUBLIC_WEB_SOCKET_PUSHER_PORT=443 - # Web Push NEXT_PUBLIC_WEB_PUSH_PUBLIC_KEY=BIB5MGacpO1AsiCWPIKeJo3VUz2c9UPvwNuHyxVT+cROGstU3wJs++GyQFmONZjBN9aqdqFi8j2NSnmTPl/PA2w= diff --git a/apps/sda/.env.testnet b/apps/sda/.env.testnet index 0a7b77f15..92860d622 100644 --- a/apps/sda/.env.testnet +++ b/apps/sda/.env.testnet @@ -34,10 +34,5 @@ NEXT_PUBLIC_KVPK_API_BASE=https://kvpk.daodao.zone # Kado API NEXT_PUBLIC_KADO_API_KEY=bcee9402-d79f-427b-bafd-dd111e4ce287 -# WebSockets API -NEXT_PUBLIC_WEB_SOCKET_PUSHER_APP_KEY=daodao -NEXT_PUBLIC_WEB_SOCKET_PUSHER_HOST=ws.daodao.zone -NEXT_PUBLIC_WEB_SOCKET_PUSHER_PORT=443 - # Web Push NEXT_PUBLIC_WEB_PUSH_PUBLIC_KEY=BIB5MGacpO1AsiCWPIKeJo3VUz2c9UPvwNuHyxVT+cROGstU3wJs++GyQFmONZjBN9aqdqFi8j2NSnmTPl/PA2w= diff --git a/packages/utils/constants/env.ts b/packages/utils/constants/env.ts index b3f6f9b60..42a9cb380 100644 --- a/packages/utils/constants/env.ts +++ b/packages/utils/constants/env.ts @@ -71,15 +71,6 @@ export const SINGLE_DAO_MODE = // Kado API (https://docs.kado.money) export const KADO_API_KEY = process.env.NEXT_PUBLIC_KADO_API_KEY as string -// WebSockets API -export const WEB_SOCKET_PUSHER_APP_KEY = process.env - .NEXT_PUBLIC_WEB_SOCKET_PUSHER_APP_KEY as string -export const WEB_SOCKET_PUSHER_HOST = process.env - .NEXT_PUBLIC_WEB_SOCKET_PUSHER_HOST as string -export const WEB_SOCKET_PUSHER_PORT = Number( - process.env.NEXT_PUBLIC_WEB_SOCKET_PUSHER_PORT || '6001' -) - // Web Push export const WEB_PUSH_PUBLIC_KEY = process.env .NEXT_PUBLIC_WEB_PUSH_PUBLIC_KEY as string diff --git a/packages/utils/constants/other.ts b/packages/utils/constants/other.ts index 0aa06da9f..594b1b915 100644 --- a/packages/utils/constants/other.ts +++ b/packages/utils/constants/other.ts @@ -108,6 +108,11 @@ export const INDEXER_URL = 'https://indexer.daodao.zone' // Snapper API export const SNAPPER_API_BASE = 'https://snapper.indexer.zone' +// WebSockets API +export const WEB_SOCKET_PUSHER_APP_KEY = 'daodao' +export const WEB_SOCKET_PUSHER_HOST = 'ws.indexer.zone' +export const WEB_SOCKET_PUSHER_PORT = 443 + // KVPK prefix for saved Me page transactions. export const ME_SAVED_TX_PREFIX = 'savedTx:'