Skip to content

Commit

Permalink
fix: import env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme-NL committed Oct 11, 2023
1 parent 04b7cf4 commit 937a75b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/pusherSockets.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const matchPusherUrl = url => {
};

export const subscribeToProjectChanges = (project, callback) => {
const pusherUrl = process.env.PUSHER_SOCKET_URL || '';
const pusherUrl = import.meta.env.VITE_PUSHER_SOCKET_URL || '';
const [
_,
pusherCluster,
Expand Down Expand Up @@ -38,8 +38,8 @@ const getProjectSocket = (apiKey, apiCluster) => {
})
: new Pusher(apiKey,{
cluster: apiCluster,
wsHost: process.env.PUSHER_WS_HOST,
wsPort: process.env.PUSHER_WS_PORT,
wsHost: import.meta.env.VITE_PUSHER_WS_HOST,
wsPort: import.meta.env.VITE_PUSHER_WS_PORT,
encrypted: false,
disableStats: true
})
Expand Down

0 comments on commit 937a75b

Please sign in to comment.