add dynamic env vars
This commit is contained in:
parent
3e2ee1ee0f
commit
e42c3df210
@ -10,7 +10,7 @@ const client = createClient({
|
||||
keepAlive: 30000,
|
||||
webSocketImpl: WebSocket,
|
||||
connectionParams: async () => {
|
||||
return { access_token: 'Mb3NMqKwiyesxDeJRTD72VZZ6f4t3mBr' };
|
||||
return { access_token: process.env.DIRECTUS_API };
|
||||
},
|
||||
});
|
||||
|
||||
@ -25,8 +25,10 @@ client.subscribe(
|
||||
id
|
||||
text
|
||||
date_updated
|
||||
user_updated {
|
||||
user_updated {
|
||||
first_name
|
||||
last_name
|
||||
email
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user