Kapatid
Kapatid
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Kapatid on 5/24/2023 in #questions
Hiding ICE Servers connections
Does anyone know how to properly avoid exposing my TURN server in the client or is it unavoidable? My first thought was to store it in my .env but in the end I still call it in a page so I am confused right now. Another thing that I saw was to get it from an api route but then I would need temporary username and credential which I still don't know how to implement. My TURN server is currently in AWS EC2 and everything seems to be working fine.
...

// pages/room.tsx
const ICE_SERVERS: RTCConfiguration = {
iceServers: [
{
urls: "stun:stun.l.google.com:19302",
},
// My TURN SERVER
{
urls: "turn:x.x.x.x:xxxx",
username: "username",
credential: "credential",
},
],
}

...
...

// pages/room.tsx
const ICE_SERVERS: RTCConfiguration = {
iceServers: [
{
urls: "stun:stun.l.google.com:19302",
},
// My TURN SERVER
{
urls: "turn:x.x.x.x:xxxx",
username: "username",
credential: "credential",
},
],
}

...
1 replies
TTCTheo's Typesafe Cult
Created by Kapatid on 2/5/2023 in #questions
SWR or React Query
Does anyone know when to pick either SWR or React Query? Also, have theo already mentioned this kind of topic?
3 replies
TTCTheo's Typesafe Cult
Created by Kapatid on 1/3/2023 in #questions
create-t3-turbo naming in package.json files
What does @acme/ stand for? I mostly see it in package.json files.
3 replies
TTCTheo's Typesafe Cult
Created by Kapatid on 12/18/2022 in #questions
pnpm Store Path
Does anyone know how to change the store path of pnpm? I need to prevent it from saving packages in my internal SSD because it is small.
3 replies