t3 env vercel deployment
attempting to use t3env and keep having build errors for vercel, any help would be appreciated
next config below
`import {createJiti} from 'jiti';
import { fileURLToPath } from 'node:url';...
Solution:
Resolved with the next.config.ts below
got the import syntax from create-t3-app boilerplate code
`/**...

Steam Provider with nextauth
Hey im trying to figure what the best way is to implement steam openid with nextauth - does anyone have experience with this?
How to pass trpc useQuery into a component
Hello, I'm wondering how I can tell typescript what type my
useQuery
is when passing it into a react component? I want to avoid using any
.
I am aware of RouterOutputs
, but this doesnt work for the entire useQuery response, only for the data
that is returned.
```ts
const { data: activeSubscriptions } = api.premium.getActiveUserSubscriptions.useQuery();...Use ts type in Zod
i have a type that i am importing from a 3rd party package. is there a way i can use this type and put it my object schema. if i just make it an enum and i update the 3rd party package and they change these types, my code would be wrong
```ts
// imported type:
type EmailOtpType = 'signup' | 'invite' | 'magiclink' | 'recovery' | 'email_change' | 'email'
...
Limits
For the AI models like Claude for example in T3, does it still have the same limitation where it cant write more than 100+ lines of code? Additionally, is there any limit chat per day for the paid users?
Password Handling
I have a simple site with an input for a password and then on submit, it goes to this:
```typescript
import { NextResponse } from "next/server";
export async function POST(request: Request) {...
In your opinion, what are the best-written open source React projects?
Hi there, I've been looking for popular open source React projects to learn from and found some - like for example cal com, uploadthing, and pancakeswap. Here's the thing though: i'm not an expert, so I can't say if they are well written or not. So I ask folks here: in your opinion, what are the best-written open source React projects? ideally ones that are not on my list
trpc caching procedure calls for queries in the same batch
Hello,
I am using nextjs and trpc server components, using trpc to prefetch queries. All of the requests on this page are protected by a procedure called
protectedGuildPermissionsProcedure
which essentially checks that the user has the right permissions to access the data that is returned.
```ts
await Promise.all([...32K tokens limit on 4.1 model
I am trying to upload a file which more then 32K tokens which should ideally work for the 4.1 model yes?

Bookmarks for T3 Chat?
I can't be the only one using AI for very long form conversations on a subject or coding project. It would be super nice if somehow T3 could allow you to add bookmarks, and quickly jump to that part of the conversation. Also would be nice to have a quick easy list of bookmarks for the current thread.
Gcloud Support sucks
Hi, do you know any way I can speak to a human at gcloud?
console.cloud.google.com always redirects me to Vertex AI Studio (where I don't want to be). The fucking support bot is awful, no helpful in the slightest and I don't know how I can talk into giving me a human to chat to.......
Solution:
the only escape was through billing an the access all of google cloud button
Sponsor that was a payment gateway
Im trying to find what I think was a sponsor - and i think it was a stripe wrapper, but it was targeted to developers, im sure the site was black/white in its theme too. Any ideas?
How many R's in strawberry.
Why does it get this question wrong when claude on website does not. The bottom one is claude 3.7 sonnet and the top one is gpt4.1 mini. I asked the same thing to claude on the website and it gave the correct answer.

Use AI to map data from a spreadsheet to the database
Hi, I am working on an inventory management app. Since clients are using different spreadsheet formats for their existing inventory, i want to be able to take in an inventory spreadsheet and have AI map it to the format i use in my app.
Since i have no experience integrating with AI, I am curious what do you think is the best approach for this problem and what model should i use?
Any suggestions are welcome...
Solution:
yeah, you don't need to whole data to gpt. just send header of sheet & db column, then get matching data.
And then you can extract real row datas from sheet with result map...
console.cloud.google.com redirects to Vertex AI Studio
Hi, I'm trying to create an api key to use gemini 2.0 flash. I created a project through gcloud cli, because every time I open any page on console.cloud.google.com I get redirected to vertex ai studio. When I try to create an API Key in https://aistudio.google.com/app/apikey I always get permission denied both while selection an existing project and create in a new one. Changing Browser engine (webkit -> chrome) and trying in incognito mode doesn't change anything
Solution:
it worked on mobile for some reason
Email Provider
Does anyone have a preference on Email Providers for personal use/startup to setup emails with custom domains? I'm looking for something like Google Workspace, Office 365, ProtonMail, etc.
UPLOAD THING
My problem is that when i upload images to the app and and try to copy the URL
I always get the same URL copied , so in my case that means that i get the same image over and over again copied to where ever i put the image to.
I ve also tried to delete image when i coppied it and then upload next image in order to see it will fix it but no improvements.
...
mutation taking a long time to appear after prefetching query
Hello,
I'm am currently having an issue where if my
isCaptchaValid
endpoint errors (using throw new TRPCError(...)
) the error message takes a long time to come through, it appears that it is linked to the endpoints execution time, as if I add some code to wait 2 seconds before executing it dramatically increases the time it takes for the error to come back.
I am using nextjs loading.tsx which is how the loading animation works, so as soon as the loading animation is gone it means that TRPC data has finished fetching, so the error message should be appearing instantly?...Multi-part uploads with UploadThing
Hey guys I need to upload videos around 1GB, is there a way I can upload them with a stream or with multi-part uploads?
onUploadComplete
I'm using Next.js, and host it on Vercel. When in
dev
mode, the onUploadComplete
run my codes just fine, but when I run the prod
build, my codes in onUploadComplete
were not executed at all, even the console.log
Any help is appreciate.
```
export const ourFileRouter = {...