mr nooli
Explore posts from serversCDCloudflare Developers
•Created by mr nooli on 10/20/2024 in #general-help
Hyperdrive without using a worker?
Hey all, I want to setup hyperdrive for my stack to see if it's more performant than using a direct connection to the database.
We're currently hosted on Vercel (plans to switch to cloudflare when I get some time) but I wanted to test out hyperdrive! I can see that I can provide a db connection string but from my understanding I'd get a new connection string from cloudflare, where can I find this?
Thanks in advance!
4 replies
DTDrizzle Team
•Created by mr nooli on 5/11/2024 in #help
introspection fails (Supabase)
I've got a large application originally written w/ nextjs and prisma, but due to it being large, the performance has massively reduced, so I'm doing a rewrite of the customer facing part in svelte and drizzle, I want to leave the primary db changes in the main app, but want to use drizzle for this so I can deploy on the edge...
When I do
npx drizzle-kit introspect
I get back:
Whenever I rerun the command, the number of tables/columns it completes changes every time, sometimes it's 200 or so columns, sometimes it's more. Any idea what I'm missing?4 replies
CDCloudflare Developers
•Created by mr nooli on 2/24/2024 in #pages-help
no such file or directory
Getting this issue for a next-on-pages:
Any ideas?
5 replies
CDCloudflare Developers
•Created by mr nooli on 1/2/2024 in #pages-help
build exceeded memory limit (on a very large NextJS app)
Hey there, I've got a relatively large nextjs project and I'm running into the "build exceeded memory limit" - This is the first time I've created a build since the last 2 weeks and I've not added "thaat" much to it, so I'm a bit confused about it. Anyone able to help me out? (Thanks in advance)
5 replies
CDCloudflare Developers
•Created by mr nooli on 12/28/2023 in #general-help
github organisation
Hey there, I had a project that was on my personal GH account (next-on-pages) but I moved the project onto a GH org account, the deployments are no longer working, any suggestions? Or do I have to create another project and swap out the DNS details?
1 replies
CDCloudflare Developers
•Created by mr nooli on 12/14/2023 in #pages-help
NextJS is slower on CF than on Vercel
9 replies
CDCloudflare Developers
•Created by mr nooli on 11/27/2023 in #general-help
The script will never generate a response.
Hey there, using next-on-pages to develop my site. I added a lottie animation to my site and am now getting the above error. It builds and deploys fine, but there is absolutely no info on how to debug the issue! Any help would be much appreciated! 🙂
42 replies
CDCloudflare Developers
•Created by mr nooli on 11/3/2023 in #general-help
Staging working but not Prod/Local
I'm getting some really weird behaviour not sure where to put it - my staging env is working perfectly but I absolutely cannot connect to my prod env same with local, local isn't working either (cos I use prisma accelerate and that goes through cloudflare) but then I have no idea why it'd work with dev 🤦♂️ - links,
prod: https://eat.cruncho.app
dev: https://dev.cruncho.app
dev is a bit more up to date than prod but last I saw it was working perfectly 🤦♂️
1 replies
CDCloudflare Developers
•Created by mr nooli on 10/24/2023 in #general-help
Error: Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size limi
Hey there! I'm looking at a couple of providers for hosting a somewhat large Nextjs 13 application. Vercel's pricing doesn't scale too well so was looking at using cloudflare workers (pages). I'm relatively new with cloudflare, so bare with me 😄
So I know that Vercel has edge functions and I believe that they piggyback off cloudflare. So my question is, how come I can host my application on vercel (free) but not on cloudflare (free). I also recognise that there is a 1Mb size limit for the worker (?) - where do I actually find out how big the file is (locally if possible)? I've got ~50 pages and the same number of api's (which I've converted to edge compatible functions). No single function is taking up more than 120kb in size. When I do - npx @cloudflare/next-on-pages --experimental-minify and check the .vercel/output/static/worker.js/ it's around 6mb - is this what I should be looking at or is it the index.js, which is 93kb (or something completely different)?
6 replies