shadi
shadi
Explore posts from servers
CDCloudflare Developers
Created by shadi on 5/9/2024 in #general-help
OPTIONS / 404 Not Found (5ms) when calling worker from react
anyone know why I might be getting the error:
[wrangler:inf] OPTIONS / 404 Not Found (5ms)
[wrangler:inf] OPTIONS / 404 Not Found (5ms)
when calling a worker from a react codebase? when calling it via postman with the same request body and everything, it works fine
1 replies
TTCTheo's Typesafe Cult
Created by shadi on 12/21/2023 in #questions
Setting up a custom sign in page with AuthJs (NextAuth v5)
The docs don't really explain how to make a custom sign in page and list providers using authjs, has anyone got this to work? This is all they have: https://authjs.dev/guides/basics/pages
1 replies
TTCTheo's Typesafe Cult
Created by shadi on 12/9/2023 in #questions
File Upload with Background Processing and Toast Updates in Nextjs
I'm in the process of planning a feature for my Next.js project. The feature involves a file upload form, and once users submit files, they should be redirected to another page while the file upload process occurs in the background. I want to implement a toast at the bottom right of the page that displays the upload progress (similar to Google Drive). The goal is to allow users to navigate across pages while the upload toast persists and updates accordingly. I'm seeking advice on the best approach to implement this feature, particularly whether it's achievable without using a state management library. My initial thought was to utilize a layout.tsx and integrate the upload progress toast there. However, I'm uncertain about where to invoke the upload function and how to establish a connection between the upload progress and the toast. Any guidance on how to implement this architecture effectively would be greatly appreciated.
2 replies
DTDrizzle Team
Created by shadi on 7/10/2023 in #help
New neon http driver not working with pooled connections
is the new { drizzle } from "drizzle-orm/neon-http" not compatible with pooled connections? Getting error when I do:
const pool = new Pool({ connectionString: env.DATABASE_URL });
export const db = drizzle(pool);
const pool = new Pool({ connectionString: env.DATABASE_URL });
export const db = drizzle(pool);
but works when
const pool = neon(env.DATABASE_URL);
export const db = drizzle(pool);
const pool = neon(env.DATABASE_URL);
export const db = drizzle(pool);
4 replies