Luke
Luke
Explore posts from servers
CCConvex Community
Created by Luke on 12/15/2024 in #support-community
convex.json schema?
After doing some research, it would appear that (at the moment) this doesn't exist. Given that, I went ahead and made a "community" one by scouring the Convex GitHub org and looking for all usage of convex.json. I tried to strictly type it and link out to docs to the best of my ability, although it may not be perfect. You can find the GitHub gist here, and if anyone has any alterations please let me know! You should be able to use it like this:
{
"$schema": "https://gist.githubusercontent.com/dir/945673224a85d0185f78f6f46a563320/raw/convex.schema.json",

"node": {
"externalPackages": ["*"]
}
}
{
"$schema": "https://gist.githubusercontent.com/dir/945673224a85d0185f78f6f46a563320/raw/convex.schema.json",

"node": {
"externalPackages": ["*"]
}
}
Alternatively, if you use VSCode, a cleaner solution is to set the schema in your settings.json, like so:
{
"json.schemaDownload.enable": true,
"json.schemas": [
{
"fileMatch": ["**/convex.json"],
"url": "https://gist.githubusercontent.com/dir/945673224a85d0185f78f6f46a563320/raw/convex.schema.json"
}
]
}
{
"json.schemaDownload.enable": true,
"json.schemas": [
{
"fileMatch": ["**/convex.json"],
"url": "https://gist.githubusercontent.com/dir/945673224a85d0185f78f6f46a563320/raw/convex.schema.json"
}
]
}
This solution makes it so that you don't need to do the "$schema": "...long gist url here in every convex.json file, VSCode will automatically map the schema.
6 replies
TTCTheo's Typesafe Cult
Created by Arianos11 on 9/6/2024 in #questions
Proper technology stack for ecommerce
Yes, but if you leverage SSR, then you can have your API requests happen much closer to your server
18 replies
TTCTheo's Typesafe Cult
Created by Arianos11 on 9/6/2024 in #questions
Proper technology stack for ecommerce
I'd still advise having those reqs run through the server on Remix or Next, for a few reasons: 1. More control over handling, easier, cleaner code/separation of concerns 2. Easier and cleaner to enforce security And last but not least, the most important reason and big perf gain, is that if you call your API via your frontend on the server side, and your API/frontend are using the same hosting provider and are close to eachother, that API request will execute much quicker from server <-> server as opposed to the client -> backend
18 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
fasho
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
@packofm&ms you're in luck man, lol, monkeytype is open source. not sure their anti cheat is on there, but you can definitely take a page out of their book
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
And what happens on the client is always going to be out of your hands, and all data that comes in from the client should be assumed to be malicious
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
You're always going to have to take what happens on the client (in this case, the typing test itself), and send that to the server to be handled
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
Gonna be honest with you... "anti-cheat" as a whole is a tough problem to solve
12 replies
TtRPC
Created by Luke on 7/23/2024 in #❓-help
Next.js/tRPC Prefetch w/ HydrateClient "Error occurred prerendering page"
I FIXED IT! Stupid mistake, I wasn't marking the root page function that was performing the prefetch as async... i.e: Broken:
export default function QueuePage() {
export default function QueuePage() {
Fix:
export default async function QueuePage() {
export default async function QueuePage() {
4 replies
TTCTheo's Typesafe Cult
Created by Luke on 7/23/2024 in #questions
Next.js/tRPC Prefetch w/ HydrateClient "Error occurred prerendering page"
I FIXED IT! Stupid mistake, wasn't marking the root page function as async... i.e: Broken:
export default function QueuePage() {
export default function QueuePage() {
Fix:
export default async function QueuePage() {
export default async function QueuePage() {
4 replies
TTCTheo's Typesafe Cult
Created by oz on 7/7/2024 in #questions
Route workin in Dev and not Prod?
Out of curiosity, are you using any auth library or are you using any Next.js middleware?
6 replies
TTCTheo's Typesafe Cult
Created by Isaac on 7/6/2024 in #questions
Backend Architecture - Programmatically generating files and pushing to user's GitHub
But if I were you, I'd have a nice little web app, have them authenticate with GitHub, and then you should be good (depending on the scopes your application uses) to perform actions on behalf of them using the plain old GitHub API
8 replies
TTCTheo's Typesafe Cult
Created by Isaac on 7/6/2024 in #questions
Backend Architecture - Programmatically generating files and pushing to user's GitHub
@Isaac I'm not too sure what your idea exactly is, so it's hard to give solid info without the full background
8 replies
TTCTheo's Typesafe Cult
Created by Jeffrey on 7/3/2024 in #questions
Most Performant Way of Implementing Dialog/Sheet for Row Click in a large DataTable
I ended up implementing react-window (https://github.com/bvaughn/react-window), worked like a charm, didn't require too much effort either
6 replies
TTCTheo's Typesafe Cult
Created by Jeffrey on 7/3/2024 in #questions
Most Performant Way of Implementing Dialog/Sheet for Row Click in a large DataTable
Not an insane number by any means, but, when I went to open the combobox, my laptop would freeze up for a second, was defintely not a great feeling
6 replies
TTCTheo's Typesafe Cult
Created by Jeffrey on 7/3/2024 in #questions
Most Performant Way of Implementing Dialog/Sheet for Row Click in a large DataTable
Was adding some filter components using shadcn's "combobox" to a data table, and one of the filters was a "select a user" type situation, where there are about 5000~ users to select from.
6 replies
TTCTheo's Typesafe Cult
Created by Jeffrey on 7/3/2024 in #questions
Most Performant Way of Implementing Dialog/Sheet for Row Click in a large DataTable
But I quite literally just dealt with a nearly identical case today
6 replies
TTCTheo's Typesafe Cult
Created by Jeffrey on 7/3/2024 in #questions
Most Performant Way of Implementing Dialog/Sheet for Row Click in a large DataTable
I'm a little late to the party here
6 replies