Victor Costelini
Victor Costelini
TTCTheo's Typesafe Cult
Created by Victor Costelini on 5/14/2023 in #questions
Vercel loading production env variables in preview deployments
Thanks, guys!
4 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 5/9/2023 in #questions
Next Auth problem in Vercel
This solved the issue:
const user = await decode({
token: authToken,
secret: Buffer.from(process.env.NEXTAUTH_SECRET!),
});
const user = await decode({
token: authToken,
secret: Buffer.from(process.env.NEXTAUTH_SECRET!),
});
14 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 5/9/2023 in #questions
Next Auth problem in Vercel
I was getting desperate by now.
14 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 5/9/2023 in #questions
Next Auth problem in Vercel
HOLY FUCK IT WORKED
14 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 5/9/2023 in #questions
Next Auth problem in Vercel
I tried hardcoding it and it still won't work. Trying the Buffer now.
14 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 5/9/2023 in #questions
Next Auth problem in Vercel
export declare function decode(params: JWTDecodeParams): Promise<JWT | null>;
export declare function decode(params: JWTDecodeParams): Promise<JWT | null>;
14 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 5/9/2023 in #questions
Next Auth problem in Vercel
export interface JWTDecodeParams {
/** The NextAuth.js issued JWT to be decoded */
token?: string;
/** The secret used to decode the NextAuth.js issued JWT. */
secret: string | Buffer;
}
export interface JWTDecodeParams {
/** The NextAuth.js issued JWT to be decoded */
token?: string;
/** The secret used to decode the NextAuth.js issued JWT. */
secret: string | Buffer;
}
14 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
Old thread, but I found out the problem some days ago. I changed the pageExtensions in next.config.mjs to something like .page.ts and .server.ts. That fucked up the whole project. Don't do that, guys.
23 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
Nice strategy
23 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
@cje stock works as intented. Means I fucked up somewhere...
23 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
Checking at the moment
23 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
The example route should work even without a database, shouldn't it?
23 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
Weird. I just wanted a real error message, I'm asking too much? 😢
23 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
The push worked well, I just checked at planetscale.com, the tables are there...
23 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
I did it, and the problem persists...
23 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
I'm allergic to sqlite
23 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
No, I'm using MySQL from planetscale.com
23 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
@Yiannis Thanks for the tip. Will check. It's kinda weird the error is a 404 and that no error is shown in the terminal...
23 replies
TTCTheo's Typesafe Cult
Created by Victor Costelini on 3/7/2023 in #questions
All of my tRPC requests returns 404 using create-t3-app.
23 replies