Skip to content

Commit

Permalink
updated web sockets host URL
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Jan 16, 2025
1 parent 13fef9b commit 0687e37
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 29 deletions.
5 changes: 0 additions & 5 deletions apps/dapp/.env.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -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=
5 changes: 0 additions & 5 deletions apps/dapp/.env.testnet
Original file line number Diff line number Diff line change
Expand Up @@ -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=
5 changes: 0 additions & 5 deletions apps/sda/.env.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -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=
5 changes: 0 additions & 5 deletions apps/sda/.env.testnet
Original file line number Diff line number Diff line change
Expand Up @@ -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=
9 changes: 0 additions & 9 deletions packages/utils/constants/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions packages/utils/constants/other.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:'

Expand Down

0 comments on commit 0687e37

Please sign in to comment.