moloch
moloch
Explore posts from servers
TtRPC
Created by .westsaid on 10/12/2022 in #❓-help
How to use trpc react hooks from an external data source
Thanks for this repo, it was super helpful to me. Have you ever tried enabling tRPC's subscription support via websockets? struggling to get that working inside of Keystone.js's config
8 replies
TTCTheo's Typesafe Cult
Created by Bart ⚡ on 4/7/2023 in #questions
T3 Stack + custom Next.js server not working
@asmodig I had to remove the env import just as james describes
22 replies
TTCTheo's Typesafe Cult
Created by Bart ⚡ on 4/7/2023 in #questions
T3 Stack + custom Next.js server not working
Ya that appeared to be the only way to get it to compile, but I believe it also stops .env validation from happening during development
22 replies
TTCTheo's Typesafe Cult
Created by Bart ⚡ on 4/7/2023 in #questions
T3 Stack + custom Next.js server not working
Keep in mind I require a custom server but I need websocket support
22 replies
TTCTheo's Typesafe Cult
Created by Bart ⚡ on 4/7/2023 in #questions
T3 Stack + custom Next.js server not working
Here is my current repo, I thought I had everything figure it out but it appears that none of my tRPC routes are working in production: https://github.com/stuible/t3-2-poc
22 replies
TTCTheo's Typesafe Cult
Created by Bart ⚡ on 4/7/2023 in #questions
T3 Stack + custom Next.js server not working
Will polish it up tomorrow and share the repo here (as long as I remember)
22 replies
TTCTheo's Typesafe Cult
Created by Bart ⚡ on 4/7/2023 in #questions
T3 Stack + custom Next.js server not working
Would love to see! I also now have a working example but I'm unsure If my setup is ideal
22 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
Absolutely will do, and thanks for all your help as well!
33 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
actually it appears that env validation is not working now, but I can live without it for the time being
33 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
wow ok I think I managed to get it working by converting my env to a .ts. One immediate downside is that I cannot directly include it in my next.config.mjs but I think that is just for early detection of invalid / missing .env params
33 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
currently an .mjs file
33 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
No I hit cjs / mjs errors with both
33 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
Definitely looking into it, although I assume there's a (good?) reason the project decided to make the switch
33 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
totally a headache! and thanks for all the help 🙂 I'm also noticing that rssmarkable was based on a version of t3 where they still defined the env as .ts files, the more recent versions using .mjs .
33 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
in my tsconfig.server.json do have the module mode set to commonjs
33 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
final output of the server is .js but the env file stays .mjs
33 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
Getting that error when running the compiled server.js file after compiling with tsc --project tsconfig.server.json && tsc-alias -p tsconfig.server.json
33 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
Still struggling with the error that seems to haunt me: require() of ES Module /dist/src/env.mjs not supported.
33 replies
TTCTheo's Typesafe Cult
Created by Endgame1013 on 1/15/2023 in #questions
Using a Custom Server
Thanks a lot I will give this repo a scan
33 replies