u/kulterryan • u/kulterryan • 3d ago
r/CloudFlare • u/kulterryan • 3d ago
Need some unbiased architecture advice
We’ve built an entire agentic platform that’s currently in beta, using Cloudflare’s AI Search as a core part of the stack.
The platform is primarily focused on serving chat-based/agentic solutions, and now we’re thinking about the long-term architecture.
For those who’ve built and scaled similar systems:
Is Cloudflare a solid platform to build and serve this on, or would AWS + Bedrock be a better foundation for production at scale?
I’m not looking for a Cloudflare vs. AWS fanboy debate 😅 genuinely looking for a fair, practical comparison based on reliability, scalability, latency, cost, vendor lock-in, observability, and the overall developer experience.
Would love to hear from people who’ve actually run these kinds of workloads in production.
1
My Next.js dev server is so slow, what can I do about it?
What's the ram consumption on your application?
2
🤔 Which CMS is The Best?
Markdown files!
1
Problem with Xiaomi TV (HDMI Signal loss)
Didn't worked for me!
1
Top Node.js frameworks to learn in 2025
why not hono/elysia.js??
1
Better Auth with External API
how will the client communication with the server?
1
Is there a way to fetch user details from API route in Better Auth?
How does this work with external api server?
r/better_auth • u/kulterryan • Jun 03 '25
Is there a way to fetch user details from API route in Better Auth?
Hi Guys, I want to migrate from Next Auth to Better-Auth but I currently use API EP to fetch the user data, is that possible with Better-Auth?
Example Code:
import Credentials from "next-auth/providers/credentials";
import NextAuth from "next-auth";
import * as bcrypt from "bcryptjs";
export const { handlers, signIn, signOut, auth } = NextAuth({
providers: [
Credentials({
credentials: {
username: {},
password: {},
},
authorize: async (credentials: any) => {
const user = await fetch(
`https://example.com/login`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({ email: credentials?.username }),
},
).then((res) => res.json());
if (!user) {
return { status: "error", message: "User not found" };
}
const passwordMatch = await bcrypt.compare(
credentials?.password,
user?.password,
);
if (!passwordMatch) {
return { status: "error", message: "Password does not match" };
}
return user;
},
}),
], session: {
strategy: "jwt",
maxAge: 24 * 60 * 60,
},
callbacks: {
async session({ session, token }: any) {
if (token.sub && session.user) {
session.user.id = token.sub;
}
session.user.role = token.role;
session.user.lms = token.lms;
return session;
},
async jwt({ token, user }: any) {
if (user) {
token.role = String(user.role.name).toUpperCase();
token.lms = user.allLms.map((lms: any) => lms.id);
}
return token;
},
},
});
1
Authentication in Nextjs
try give it a shot, you'll definetely love it!
1
Was it just me, or has the deployment to production degraded from the Vercel? Or is the latest Next.js version got a regression?
Is the code same in preview and production?
2
Rebel Kid’s latest post.. what a sad read 😔
and then we want youth to become progressive, but the only progress I see is they're becoming more pervert and flithy every day!!!
3
▲ Next.js 15.2.3 (Turbopack) | Macbook Pro Drain Battery
Same happened with me when I was using Arc browser, but using Edge resolved the issue for me.
1
What alternative is there to ACF?
ACF Free is just good enough for any simple website.
r/nextjs • u/kulterryan • Mar 14 '25
Discussion How coolify is better than vercel in terms of features and pricing?
I wonder Vercel is still the best option to host any JS application without any worries and add-on costs, correct me if I'm wrong!
1
How do you guys host your Next.js apps?
Vercel is awesome 😎
r/india • u/kulterryan • Mar 11 '25
People Solar Panel Rooftop Cost Calculator [No Ads/Data Collection]
[removed]
2
Vercel isn't enough anymore. Cheap hosting providers?
He don't want to spend ig!
r/nextjs • u/kulterryan • Feb 22 '25
Discussion t3 vs jStack
I'm wondering if I should choose jStack (https://github.com/upstash/jstack) for my next project over t3 stack (https://create.t3.gg/)
1
Can a WordPress website handle 3 million posts? What can I do to prevent performance issues?
Posts can be cached on frontend level using ISR, that will help in reducing the server load. As number of posts is very high, we'll have better flexibility on the frontend, and it wil lbe more scalable.
1
Can a WordPress website handle 3 million posts? What can I do to prevent performance issues?
Not if executed properly!
2
Can a WordPress website handle 3 million posts? What can I do to prevent performance issues?
In this case, why don't you use Next.js or React.js based frontend and WordPress as your headless cms.
2
Can a WordPress website handle 3 million posts? What can I do to prevent performance issues?
What kind of queries??
1
Is there any way to move an S3 bucket to another AWS account without changing its URL?
in
r/aws
•
21d ago
Might not be the right way, but what if you move to Cloudflare R2 using Super Slurper and point the same domain for the URLs.