Debaucus
Debaucus
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Debaucus on 7/30/2023 in #questions
Looking for NextAuth Discord Refresh token rotation examples. All mine have expired.
@hyperzone my main solition was to trigger a re-auth on login and store the new key.
8 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 7/30/2023 in #questions
Looking for NextAuth Discord Refresh token rotation examples. All mine have expired.
https://github.com/nextauthjs/next-auth/issues/3599 I'm not crazy! Seems like an issue ongoing?
8 replies
TTCTheo's Typesafe Cult
Created by EggsLeggs on 7/29/2023 in #questions
Hosting platform for docker images (discord bot specifically)
Oracle VPS is free for basic specs, again depends how much you want to get into the weeds vs fly.
45 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 7/30/2023 in #questions
Looking for NextAuth Discord Refresh token rotation examples. All mine have expired.
I've attempted this but keep getting the same issue. If a user's access_token or refresh_token has expired, it loops login (using the example on the page I posted). I'm confused why it doesn't re-authenticate the details and update them if the previous ones have expired.
8 replies
TTCTheo's Typesafe Cult
Created by EggsLeggs on 7/29/2023 in #questions
Hosting platform for docker images (discord bot specifically)
Some charge lots for one and not the other, depends how you go
45 replies
TTCTheo's Typesafe Cult
Created by EggsLeggs on 7/29/2023 in #questions
Hosting platform for docker images (discord bot specifically)
Honestly, I feel like you need to define 'resource hungry'. Is it RAM? Storage? CPU? What usage is the killer part. That would (if price is the main factor) swing which host to go with
45 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 7/4/2023 in #questions
TRPC -useInfiniteQuery() refreshes all data when an input is varied, how to use?
keepPreviousData: true, Doesn't work either. Thought that might be it.
3 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 6/21/2023 in #questions
Planetscale - New field with default(uuid) erroring out?
FIXED! Terrifying though, unsure if correct. I updated the database to have the apikey field. String?. Then added back the schema to my dev branch in preperation. Manually connected to my main db, updated existing values with raw SQL
UPDATE Server
SET apikey = UUID()
WHERE apikey IS NULL;
UPDATE Server
SET apikey = UUID()
WHERE apikey IS NULL;
Then synced the dev branch. Fixed.
5 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 6/21/2023 in #questions
Planetscale - New field with default(uuid) erroring out?
apikey String @unique @default("") This works correctly in the schema
`apikey` varchar(191) NOT NULL DEFAULT '',
`apikey` varchar(191) NOT NULL DEFAULT '',
5 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 6/21/2023 in #questions
Planetscale - New field with default(uuid) erroring out?
-- The following SQL will run for this change
ALTER TABLE `Server`
ADD COLUMN `apikey` varchar(191) NOT NULL,
ADD UNIQUE KEY `Server_apikey_key` (`apikey`)
-- The following SQL will run for this change
ALTER TABLE `Server`
ADD COLUMN `apikey` varchar(191) NOT NULL,
ADD UNIQUE KEY `Server_apikey_key` (`apikey`)
This is what planetscale is telling me, but it doesn't have the default value.. why?
5 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 5/31/2023 in #questions
Change ctx.session.user values to include new ones? Bad idea?
@TobyMcCann Thank you! Additionally, I had to add it to my callbacks: []in order for it to function as I wanted, but it is now working.
5 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 4/4/2023 in #questions
@unqiue in Prisma Schema. With mySQL/Planetscale, does case sensitivity matter?
Awesome, so for my use case of unique usernames, by default unique is truly unique!
4 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 4/2/2023 in #questions
tRPC prefetching URL slower? - What am I doing wrong here.
Thank you for the help and providing resources ❤️
17 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 4/2/2023 in #questions
tRPC prefetching URL slower? - What am I doing wrong here.
@joerambo @Rhys Last tag! I found the issue! So it turned out that extra second of load time was hydration issues, inside the component I was doing a <Link> inside another <Link> and it was console logging the error, adding to paint time! Since I wasn't in dev mode it was not popping up! Will definitely check the console more often now!
17 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 4/2/2023 in #questions
tRPC prefetching URL slower? - What am I doing wrong here.
@Rhys @joerambo My lack of understanding is showing, but could the slow paint be because my component is missing some changes? All the props are passed to the component from the query. But does the component need any edits to be faster?
17 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 4/2/2023 in #questions
tRPC prefetching URL slower? - What am I doing wrong here.
From my test the html is pre-hydrated, so good for SEO, but the slower load time by paint is.. not so ideal
17 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 4/2/2023 in #questions
tRPC prefetching URL slower? - What am I doing wrong here.
Yes I was testing lighthouse on vercel production site. With my code the data was there, but paints took 1s more
17 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 4/2/2023 in #questions
tRPC prefetching URL slower? - What am I doing wrong here.
Ye, that's the plan! The content changes periodically like a news page, so ISR sounds the best, this is my step by step learning phase. ISR is the end goal
17 replies
TTCTheo's Typesafe Cult
Created by Debaucus on 4/2/2023 in #questions
tRPC prefetching URL slower? - What am I doing wrong here.
I feel like I have a miss understating, I thought (generally) you are supposed to pre-fetch/isr in order to get any kind of SEO on a page (other then meta data)? My data (specifically for this page) doesn't need any user data to be returned, the navbar etc does use it, around the wrapper, but this is a sub page and specifically only here is pre-fetch used.
17 replies