onestyle
onestyle
Explore posts from servers
NNovu
Created by onestyle on 8/22/2024 in #💬│support
Style inbox component react
I was trying to migrate from novu provider to novu inbox component but I had hard time styling it. First, novu react doesn't export dark them as mentioned in the docs, so only light theme is available. Also, in the variables in the appearance props I can control all variables except for on hover color. There's not enough examples on customizing the appearance, controlling notifications hover, or other styles in the elements prop Finally, the inbox notification drops the notification type (when user clicks on notification I would like to know what notification is this, the name of the temple for example post like or new post or new message)
8 replies
NNovu
Created by onestyle on 4/13/2024 in #🚀│general
Use novu on edge`
I'm trying to tigger notification from vercel adge worker and I'm getting an error that xhr adapter is not available and I can only use http (fetch)
[AxiosError: There is no suitable adapter to dispatch the request since :
- adapter xhr is not supported by the environment
- adapter http is not available in the build] {
message: 'There is no suitable adapter to dispatch the request since :\n- adapter xhr is not supported by the environment\n- adapter http is not available in the build',
name: 'AxiosError',
code: 'ERR_NOT_SUPPORT'
}
[AxiosError: There is no suitable adapter to dispatch the request since :
- adapter xhr is not supported by the environment
- adapter http is not available in the build] {
message: 'There is no suitable adapter to dispatch the request since :\n- adapter xhr is not supported by the environment\n- adapter http is not available in the build',
name: 'AxiosError',
code: 'ERR_NOT_SUPPORT'
}
3 replies
CDCloudflare Developers
Created by onestyle on 4/13/2024 in #general-help
Is there an expiration limit for images signed url?
1 replies
NNovu
Created by onestyle on 4/6/2024 in #💬│support
User authorization for react component
I just came across novu and seems very helpful, I'm trying to integrate it with my nextjs app. I cannot figure out how to enable user authz, this seems pretty open and could easily leak other peoples' notifications if their id is known. Is there a way to add some sort of authz here? I'm intrested in using novu cloud.
<NovuProvider subscriberId={'userid'} applicationIdentifier={'appid'}>
<NovuProvider subscriberId={'userid'} applicationIdentifier={'appid'}>
10 replies
CDCloudflare Developers
Created by onestyle on 3/10/2024 in #general-help
How to get images from R2 to CF images
Hey, I want to upload large images to R2 (average Image size ~20MB). How can I copy these images to CF images for delivery? Workers won't be able to handle this.
6 replies
CDCloudflare Developers
Created by onestyle on 3/6/2024 in #general-help
Can I use CF CDN to cache my images in CF images
Can I use CF CDN to cache my images in CF images?
4 replies
CDCloudflare Developers
Created by onestyle on 1/20/2024 in #general-help
what is stream service actual pricing?
Where can I find the actual stream service pricing? I cannot find it anywhere except for a basic bundle pricing, how about anything beyond these plans? https://www.cloudflare.com/products/cloudflare-stream/
5 replies
DTDrizzle Team
Created by onestyle on 11/17/2023 in #help
Properly define Created at and updated at columns
How to properly define each of these columns. default now seems to be triggered during insert and update
1 replies
TTCTheo's Typesafe Cult
Created by onestyle on 11/14/2023 in #questions
Why am I seeing the neon db requests on the client side??
No description
4 replies
TTCTheo's Typesafe Cult
Created by onestyle on 11/11/2023 in #questions
Share types between front and and backend without trpc...
I'm working on a project using nextjs, Hono js, drizzle, turborepo . I don't want to use trpc and would like to enforce types. I want to infer the return type of the fetchMyCollection to export it and use it in the nextjs app. I tried to do type myType = ReturnType<typeof fetchAlbum> but this is only a shallow type. How can properly share the types across the backend and nextjs?
export async function fetchMyCollection(collectionItemId: string) {
const collectionItem = await myDatabase.query.collectionItems.findFirst({
where: eq(collectionItems.itemId, collectionItemId),
});
console.log("Fetched collection item: ", collectionItemId);

const resourcesCount = (
await myDatabase.select({
count: sql<number>`count(*)`,
}).from(myMediaResources).where(eq(myMediaResources.collectionItemId, collectionItemId))
)[0].count;
return { collectionItem: { ...collectionItem, resourcesCount }, resources: [] };
}
export async function fetchMyCollection(collectionItemId: string) {
const collectionItem = await myDatabase.query.collectionItems.findFirst({
where: eq(collectionItems.itemId, collectionItemId),
});
console.log("Fetched collection item: ", collectionItemId);

const resourcesCount = (
await myDatabase.select({
count: sql<number>`count(*)`,
}).from(myMediaResources).where(eq(myMediaResources.collectionItemId, collectionItemId))
)[0].count;
return { collectionItem: { ...collectionItem, resourcesCount }, resources: [] };
}
3 replies
CDCloudflare Developers
Created by onestyle on 10/13/2023 in #general-help
Compress R2 -> CF Images
Hey, I'm working on an app that will handle hundreds of thousands of images. My user will upload high quality images to R2 (max 50mb). I want to copy these images to CF Images. How can I let CF handle image compression/resize in this transition. I'm okay that the images are reduced to below 10mb. Do I have to use another cloud provider to do this compression myself? Or can I upload images to CF Images and it does the resizing automatically
1 replies
CDCloudflare Developers
Created by onestyle on 10/2/2023 in #general-help
R2, bulk download files
Hey, I want to allow my users to download hundreds of images at once. On AWS I can use lambda to compress the files and share the output zip file path. How can I handle this on cloudflare? (Given the limitations of cloudflare workers)
2 replies
CDCloudflare Developers
Created by onestyle on 10/1/2023 in #general-help
R2 CDN
Is R2 worker cache is the same as Cloudflare CDN? How can I add cloudflare cdn in front of my private R2 bucket? I will use presigned URLs to access files
6 replies
CDCloudflare Developers
Created by onestyle on 10/1/2023 in #general-help
Is 10MB a hard limit for images?
I'm considering using cloudflare images, but I'll need to support images up to 50mb (and keep the original image), is this something doable with cloudflare images or is the 10mb a hard limit?
2 replies
CDCloudflare Developers
Created by onestyle on 10/1/2023 in #general-help
R2 temporary token for a bucket
Hey, I'm coming with an AWS background. I'm trying R2 out and need help. How can I let the user interact with my data directly from/to R2 client side? On AWS I can use STS to generate temporary limited credentials for a specific bucket or even object (folder), how can I do the same for R2?
5 replies
TTCTheo's Typesafe Cult
Created by onestyle on 9/22/2023 in #questions
Setting my T3 stack manually
Hey, is there a video/guide to setup T3 stack manually. I have an MUI template which I want to use the same T3 config #questions
5 replies