SheldonFromBBT
Explore posts from serversBABetter Auth
•Created by SheldonFromBBT on 2/26/2025 in #help
(Cloudflare) Workers CPU resources exceeded
Hello everyone, I have a web app made using SvelteKit and am facing this issue where my cpu resources are being exceeded while signing in or up, i.e the limit of 10ms CPU time is not enough for these auth purposes, now is there any way to avoid this or only upgrading to paid plans can make it avoid this problem? I have two alternatives or workaround I can use:
- Create a different server for this sole purpose, i.e a deno server which signs in, parses the cookie sends back to our main app
- Migrate to something like Vercel.
Is the first solution viable and vulnerable to security concerns?
Currently this is the code am using:
Help would be really appreciated, Thanks.
3 replies
BABetter Auth
•Created by SheldonFromBBT on 2/14/2025 in #help
node:crypto not supported (in cloudflare pages)
Hey everyone, I am on cloudflare pages project with sveltekit and during build I get error of node:crypto not supported and the workaround or fix for now is to use node_compatibility flag, it works but should not it work without these flags? Also the PR for this case was merged : https://github.com/better-auth/better-auth/pull/456
Where am I going wrong? I have a plain project with better-auth setup (latest version)
2 replies
DTDrizzle Team
•Created by SheldonFromBBT on 1/25/2025 in #help
Cannot use supabase serverless on cloudflare pages
Hey all I get this error on deployment :
Error: Failed to publish your Function. Got error: Uncaught Error: No such module "node:events".
This is my db setup:
I tried everything, but could not get any success on this
4 replies
CDCloudflare Developers
•Created by SheldonFromBBT on 12/21/2024 in #general-help
Using sub-route or subdirectory as a sub-domain
Hey all, I want to use a sub domain on my main domain as the sub directory, for example : I want to show my
/blog
when you visit blog.example.com
Can we do this in cloudflare itself? I tried to find solutions for this, but not quite getting the thing I want, I DONT want redirects, I just need the subdomain behave as the sub-route in my website
Thanks.1 replies
CDCloudflare Developers
•Created by SheldonFromBBT on 12/19/2024 in #general-help
Clarity on "Client Max Upload Size"
Hey everyone, I just wanted to know that how does cf exactly enforce the limit of client max upload size? for example on free tier its 100MB, so does it mean that my user or client cannot upload or share anything above 100MB? for example, If they want to upload a big file (like video or something) on S3 or similar solutions and they couldn't? How could I solve this issue? If I want to build app where client would need share big files.
Help would be really appreciated!
12 replies
BABetter Auth
•Created by SheldonFromBBT on 11/15/2024 in #bug-reports
Signin throws an occasional not valid JSON error

7 replies
BABetter Auth
•Created by SheldonFromBBT on 11/9/2024 in #bug-reports
Server auth not working (SvelteKit) via signin with email
Hey everyone, When I try to sign in with email and with server actions, the session doesnt seem to set or authentication simply doesnt complete
In this code:
try {
let res = await auth.api.signInEmail({
body: {
email,
password
}
});
console.log(res.user);
} catch (err) {
if (err instanceof APIError) {
error(400, { message: err.message });
}
}
the user does get logged in the console but my session is still empty, Is this a bug? or am simply doing something wrong?
Do we need to set the user session ?
Thanks!6 replies
BABetter Auth
•Created by SheldonFromBBT on 11/7/2024 in #bug-reports
Github Oauth not working in production
Hey everyone, I have a web app built with SvelteKit, for oauth with github everything works well and as expected in development environment or for localhost app, but things break and in console a 500 (Internal Server Error) logs out, am really not sure why is this happening, I have just followed the instructions from docs as it is, Help would be really appreciated.
I don't know if it requires reproduction, cause there's nothing different going on from the docs steps, its just things dont work in production (Also, I deploy on cloudflare pages.)
18 replies
KPCKevin Powell - Community
•Created by SheldonFromBBT on 5/12/2024 in #front-end
Make height of a scrolling div less than certain height (with calc())
Hey there, am facing this issue where my main div doesn't stay on the certain specified height which should be less than some other element, in this example it should be min-h-[calc(100dvh-2.5rem)], where 2.5rem is height of a navbar located at bottom with fixed position, What I want to achieve is that main div should be scrollable without its bottom content getting overlapped with the navbar
The main thing is that it works untill more elements are added where it becomes scrollable
A playground will make you understand better - https://play.tailwindcss.com/FchqlK9POr
Thanks!
13 replies
The new and updated version for using socket.io handler with Deno.serve()
Hey there! am getting a error when I pass socket.io handler to Deno.serve(),
Here is what am doing :
Deno.serve(io.handler(), {
port: 3000,
});
Additional code for refrence :
import { Server } from "https://deno.land/x/[email protected]/mod.ts";
const io = new Server({
cors: {
origin: [
"https://localhost:5173",
],
credentials: true,
methods: ["GET", "POST"],
},
});
18 replies
KPCKevin Powell - Community
•Created by SheldonFromBBT on 1/11/2024 in #front-end
Overflowing issues ( Height related )
Hey there! I am having this issue where my content inside the div is overflowing, I am totally unsure and clueless why is this happening.
Here this is the screen recording of actual site, and what is happening, I have this
div
inside of main
tag, and dummy text to illustrate whats happening, blue background is to show the real overflowing problem, Thanks24 replies