ChronicStone
Explore posts from serversCDCloudflare Developers
•Created by ChronicStone on 5/27/2024 in #general-help
Custom install command
I need to run a custom install command when installing packages for some reasons. Is there a way I can achieve this ?
3 replies
CDCloudflare Developers
•Created by ChronicStone on 1/9/2024 in #pages-help
Which object holds environment variables (Nuxt)
I just configured & deployed a nuxt app to be deployed to cloudflare pages. Environment variables are all setup, but I can't seem to access them, like to setup my drizzle DB connexion :
(I'm using
t3-env
to valdiate & access my env vars : https://env.t3.gg/)
All these env vars are alaways empty & validation fails. By default it looks into process.env, but I can change the lookup object.
But I'm still not sure to understand how I can access these env vars. I tried looking into globalThis, process.env, import.meta.env but none of these objects seem to hold my env vars.2 replies
tRPC subscription : Access to socket ID from subscription
I'm trying to implement user online status in a reliable way on my app, on the "live" part of my app.
It's done & working well, but on some cases where the connexion is cut & not restored, I can't trigger the mutation marking the user offline.
Right now I'm handling this through the client only right now but in some instances, it's not reliable.
What I'd like to do would be something like this : (For subscription I need to pass my authToken as an input since wsLink does not support dynamic header resolver yet to my knowledge).
The goal being that on disconnexion of the socket, I mark the user as disconnected from the server to make the whole thing more reliable :
5 replies