Slaven
Slaven
Explore posts from servers
DTDrizzle Team
Created by Slaven on 5/13/2024 in #help
Table definition to TS type
Is it possible to get a TS type from a Drizzle Schema Table definition? Something like this:
export const users = pgTable('user', {
id: text('id')
.primaryKey()
.$default(() => `${Math.random()}`),
name: text('name'),
email: text('email').notNull(),
emailVerified: timestamp('emailVerified', { mode: 'date' }),
image: text('image')
})
export const users = pgTable('user', {
id: text('id')
.primaryKey()
.$default(() => `${Math.random()}`),
name: text('name'),
email: text('email').notNull(),
emailVerified: timestamp('emailVerified', { mode: 'date' }),
image: text('image')
})
👆 would convert to 👇
type User = {
id: string
name: string
email: string
emailVerified: string
image: string
}
type User = {
id: string
name: string
email: string
emailVerified: string
image: string
}
3 replies
CDCloudflare Developers
Created by Slaven on 11/3/2023 in #general-help
Cloudflare tunnels are down
No description
3 replies
RRailway
Created by Slaven on 6/26/2023 in #✋|help
Configure maximum request body size SvelteKit | HTTP 413
Hello, is there a way to configure the accepted size of a request's body. I am currently trying to call an endpoint with a 500kb body and I get a 413 HTTP error with the message:"Invalid request body" . There are no logs in the apps "Deploy logs". I am using sveltekit with a railway.json configuration (no Dockerfile).
9 replies
RRailway
Created by Slaven on 6/6/2023 in #✋|help
Custom domain request forwarding
Hello, I would like to do the following in my railway project: Connect 2 custom domains to a web app. domain1 : longdomain.com domain2: lngd.io The first domain needs to point to the web app. longdomain.com -> example.up.railway.app The second domain needs to point to a specific route of the web app: lngd.io -> example.up.railway.app/api So when a request gets forwarded like so: lngd.io/<dynamic-value> -> example.up.railway.app/api/<dynamic-value> Is what I am trying to do for domain2 possible on railway?
5 replies
RRailway
Created by Slaven on 3/9/2023 in #✋|help
Multiple deployments stuck after using "Check Suites"
4 replies