T3 env in nextjs custom typescript server

Hello, Im trying to setup Nextjs 13 app router with custom server with typescript. So far so good I was able to get the latest tRPC setup with nextjs13 app router and custom express server entry point all in typescript. But I would Like to use T3Env in that custom express server entry point but Im failing to do so. Complaining about the esm module inported in that cusotm server file. This is insane how much you need to fiddle to get something like that working in 2023 😄 anyway... I've followed this repo from vercel to get express server entry point working but dunno how to reconfigure it so I could use env.mjs Version I've used for T3 Stack https://discord.com/channels/966627436387266600/988912020558602331/1150912514322870322 Ts custom server example from vercel https://github.com/vercel/next.js/tree/canary/examples/custom-server I would appreciate any suggestions. Fighting with it for 2 days already
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server