Jim
Jim
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Jim on 2/2/2025 in #questions
tanstack start 404 error
I followed the guide to setup uploadthing for tanstack start, but I get a 404 error afterwards. I use trpc at /api/trpc and a demo endpoint at /api/hello and they both work fine. only uploadthing returns a 404
2 replies
DTDrizzle Team
Created by Jim on 1/26/2024 in #help
CONNECT_TIMEOUT
I run into a strange problem. I use postgres-js and drizzle in my server. My DB is hosted by scaleway. Everything works fine but after hours of successful connections, i receive a CONNECT_TIMEOUT error. My drizzle connection looks like this and used across the whole project. I cant figure it out why it is behaving this way. Any help would be appreciated
typescript
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";

const queryClient = postgres(
process.env.DATABASE_URL
);

export const db = drizzle(queryClient, { logger: true });
typescript
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";

const queryClient = postgres(
process.env.DATABASE_URL
);

export const db = drizzle(queryClient, { logger: true });
4 replies