Mattèo
Mattèo
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Jaaneek on 3/28/2023 in #questions
Cors subdomains
Hi @Jaaneek, sorry to bother you, could you share the code snippet for this problem? Even if it's embedded in your project, just to see how you've implemented secure subdomain authentication
9 replies
TtRPC
Created by Mattèo on 12/9/2023 in #❓-help
How to create a React Component that fetch API based on a router from props ?
I also tried something like this but It's throwing the same TS error
export const RowActionDeleteButton = ({
id,
trpcRouter,
}: {
id: string
trpcRouter: RouterLike<AppRouter["module"]> | RouterLike<AppRouter["lesson"]>
}) => {
const router = useRouter()

const deleteMutation = trpcRouter.delete.useMutation({
onSuccess: () => {
router.reload()
toast.success(`Key ${id} deleted`)
},
onError: (err, variables) => {
router.reload()
toast.error(`Error deleting key ${id}`)
console.error(err, variables)
},
})

return (
<Button variant="destructive" onClick={() => deleteMutation.mutate({ id })}>
Delete
</Button>
)
}
export const RowActionDeleteButton = ({
id,
trpcRouter,
}: {
id: string
trpcRouter: RouterLike<AppRouter["module"]> | RouterLike<AppRouter["lesson"]>
}) => {
const router = useRouter()

const deleteMutation = trpcRouter.delete.useMutation({
onSuccess: () => {
router.reload()
toast.success(`Key ${id} deleted`)
},
onError: (err, variables) => {
router.reload()
toast.error(`Error deleting key ${id}`)
console.error(err, variables)
},
})

return (
<Button variant="destructive" onClick={() => deleteMutation.mutate({ id })}>
Delete
</Button>
)
}
3 replies
RRailway
Created by Mattèo on 9/29/2023 in #✋|help
Does timescaledb and PostGIS are installed on the postgres-ssl image ?
Yes exactly
18 replies
RRailway
Created by Mattèo on 9/29/2023 in #✋|help
Does timescaledb and PostGIS are installed on the postgres-ssl image ?
I think, it might be useful in the documentation to have the info
18 replies
RRailway
Created by Mattèo on 9/29/2023 in #✋|help
Does timescaledb and PostGIS are installed on the postgres-ssl image ?
And for the role name, did you plan to rename to postgres ?
18 replies
RRailway
Created by Mattèo on 9/29/2023 in #✋|help
Does timescaledb and PostGIS are installed on the postgres-ssl image ?
Thanks for your reply, I will use the timescaledb image 👍
18 replies
RRailway
Created by Mattèo on 9/29/2023 in #✋|help
Does timescaledb and PostGIS are installed on the postgres-ssl image ?
18 replies
RRailway
Created by Mattèo on 9/29/2023 in #✋|help
Does timescaledb and PostGIS are installed on the postgres-ssl image ?
No description
18 replies
RRailway
Created by Mattèo on 9/29/2023 in #✋|help
Does timescaledb and PostGIS are installed on the postgres-ssl image ?
No description
18 replies
RRailway
Created by Mattèo on 9/29/2023 in #✋|help
Does timescaledb and PostGIS are installed on the postgres-ssl image ?
No description
18 replies
RRailway
Created by Mattèo on 9/29/2023 in #✋|help
Does timescaledb and PostGIS are installed on the postgres-ssl image ?
N/A
18 replies
RRailway
Created by 🇩🇴gmcamposano on 9/7/2023 in #✋|help
Trying to pg_dump and getting this weird error:
I'm trying to understand this warning too, I don't have the answer 😅🤷‍♂️
16 replies
RRailway
Created by 🇩🇴gmcamposano on 9/7/2023 in #✋|help
Trying to pg_dump and getting this weird error:
Hey @gmcamposano what did you finally do ?
16 replies
RRailway
Created by Mattèo on 9/10/2023 in #✋|help
Change region for Postgres Database
Ok perfect 😅
8 replies
RRailway
Created by Mattèo on 9/10/2023 in #✋|help
Change region for Postgres Database
Hey @Brody i'm already using the Pro Plan
8 replies
RRailway
Created by Mattèo on 8/5/2023 in #✋|help
How to execute command on a deployment ?
Okay thanks for you reply, Is there a workaround for executing a command on an instance? Lots of softwares use steps like this to migrate db, create admin user, etc...
7 replies