This message was deleted.
# helpdesk
s
This message was deleted.
s
Welcome to Node.js v14.20.0. or 18, there is no change
when I remove livekit-server-sdk from my project the problem disappears.
"dependencies": { "core-js": "^3.8.3", "crypto-browserify": "^3.12.0", "livekit-client": "^1.4.1", "livekit-server-sdk": "^1.0.2", "stream-browserify": "^3.0.0", "vue": "^2.6.14" },
const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, configureWebpack: { resolve: { fallback: { "stream": require.resolve("stream-browserify"), "crypto": require.resolve("crypto-browserify") }, }, } })
Thank you in advance
p
hi! the
livekit-server-sdk
is not supported to run in browsers, but only in nodejs environments. you could for example use a server side route with nuxt or a nodejs cloud function in one of the popular serverless environments. But of course you could also just let a node-script run on a VM of your choice.
s
Hmm. I thought of it as a client that uses api's. this situation did not come to my mind. thank you.
p
happy to help! just for context, there’s also a security concern: you should never provide your livekit api key and api secret to a client facing environment as those credentials might get stolen by a malicious actor. that’s why all APIs requiring those credentials are supposed to only run in a secure server environment where users don’t have direct access to
👍 1