winsoroaks
winsoroaks
CCConvex Community
Created by winsoroaks on 6/26/2024 in #support-community
tools to subscribe to websocket on the backend?
got it. thanks 🙂
9 replies
CCConvex Community
Created by winsoroaks on 6/26/2024 in #support-community
tools to subscribe to websocket on the backend?
ok i see. thanks. ugh just notice that endpoint doesnt have webhook 🫠
9 replies
CCConvex Community
Created by winsoroaks on 6/26/2024 in #support-community
tools to subscribe to websocket on the backend?
got it. is it possible to do so from the server?
9 replies
CCConvex Community
Created by winsoroaks on 6/26/2024 in #support-community
tools to subscribe to websocket on the backend?
yes they do. Should i just do normal fetching at 1s interval?
9 replies
CCConvex Community
Created by awangardajazz on 6/9/2024 in #support-community
<Authenticated> <Unauthenticated> + NextJS 14
also it's better to paste code using backticks (`) x3 than pasting images 🙂
4 replies
CCConvex Community
Created by awangardajazz on 6/9/2024 in #support-community
<Authenticated> <Unauthenticated> + NextJS 14
here's what i do for the src/app/page.tsx
import { redirect } from "next/navigation"
import { currentUser } from "@clerk/nextjs/server"

export default async function HomePage() {
const user = await currentUser()
if (user) {
return redirect("/")
}
return redirect("/sign-in")
}
import { redirect } from "next/navigation"
import { currentUser } from "@clerk/nextjs/server"

export default async function HomePage() {
const user = await currentUser()
if (user) {
return redirect("/")
}
return redirect("/sign-in")
}
4 replies
CCConvex Community
Created by awangardajazz on 6/9/2024 in #support-community
<Authenticated> <Unauthenticated> + NextJS 14
redirect only works for server components, Authenticated only works for client components
4 replies
CCConvex Community
Created by winsoroaks on 5/20/2024 in #support-community
is there a way to mock the ctx.db.system?
sorry bout that. thanks!
11 replies
CCConvex Community
Created by winsoroaks on 5/20/2024 in #support-community
is there a way to mock the ctx.db.system?
nvm fixed, i just had to do
environment: "edge-runtime",
environment: "edge-runtime",
in my config
11 replies
CCConvex Community
Created by winsoroaks on 5/20/2024 in #support-community
is there a way to mock the ctx.db.system?
lemme try upgrading
11 replies
CCConvex Community
Created by winsoroaks on 5/20/2024 in #support-community
is there a way to mock the ctx.db.system?
node -v
v20.9.0
node -v
v20.9.0
11 replies
CCConvex Community
Created by winsoroaks on 5/20/2024 in #support-community
is there a way to mock the ctx.db.system?
weird i copied and pasted
const storageId = await t.run(async (ctx) => {
const bytes = new Uint8Array([0b00001100, 0b00000000]).buffer;
return await ctx.storage.store(new Blob([bytes]));
});
const storageId = await t.run(async (ctx) => {
const bytes = new Uint8Array([0b00001100, 0b00000000]).buffer;
return await ctx.storage.store(new Blob([bytes]));
});
and im getting blob.arrayBuffer is not a function
11 replies
CCConvex Community
Created by winsoroaks on 5/20/2024 in #support-community
is there a way to mock the ctx.db.system?
got it. thanks!
11 replies
CCConvex Community
Created by winsoroaks on 5/20/2024 in #support-community
is there a way to mock the ctx.db.system?
or maybe i should do
if (process.env.IS_TEST) return "fake"
if (process.env.IS_TEST) return "fake"
in the functions?
11 replies
CCConvex Community
Created by winsoroaks on 5/20/2024 in #support-community
is there a way to mock the ctx.db.system?
also the query does
ctx.storage.getUrl(
image.uploadedImageId as Id<"_storage">
)
ctx.storage.getUrl(
image.uploadedImageId as Id<"_storage">
)
can i somehow also mock the ctx.storage? or what's the best way to handle it?
11 replies
CCConvex Community
Created by winsoroaks on 5/14/2024 in #support-community
query and update inside for-loop
thank you all!
9 replies
CCConvex Community
Created by winsoroaks on 5/14/2024 in #support-community
query and update inside for-loop
@kapa.ai do you know?
9 replies
CCConvex Community
Created by winsoroaks on 5/12/2024 in #support-community
running migration from dashboard
thank you 🫡
10 replies
CCConvex Community
Created by winsoroaks on 5/12/2024 in #support-community
running migration from dashboard
it worked! 🎉
10 replies
CCConvex Community
Created by winsoroaks on 5/12/2024 in #support-community
running migration from dashboard
oh got it. thanks so much ian! lemme give it a shot 👀
10 replies