Dhruv Kaushik's Avatar

Dhruv Kaushik

@dhruvkaushik305

Web Developer | DevOps

8
Followers
29
Following
44
Posts
24.11.2024
Joined
Posts Following

Latest posts by Dhruv Kaushik @dhruvkaushik305

In case of WebSockets i saw that example where the setup is written in the server.js file. I don't want to add any auth and keep things in memory. In that case, I can use conext to send this object to the loaders but i couldn't make it work

20.02.2025 08:01 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

@sergiodxa.com I want to create a multiplayer typing game using remix. I am actually confused whether to use SSE or Websockets

20.02.2025 07:59 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Understood

24.01.2025 07:37 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

@ebey.bsky.social I have an image in the public folder, accessing it via import from "/imageName.format"
works on localhost but the image is not found on vercel. Is there some config i am missing or some other way to do this neat?

24.01.2025 05:27 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Aah I see, so they really are the culprits. Btw, I tried drizzle with sqlite yesterday in an existing project, i had similar cjs issues. Today i added drizzle with postgres in this same repo and shit did work

22.01.2025 02:47 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

No i did not touch the vite config

22.01.2025 02:44 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I didn't know about drizzle before

22.01.2025 02:44 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
dhruvkaushik305 - Overview Web Developer | DevOps. dhruvkaushik305 has 25 repositories available. Follow their code on GitHub.

The repo is github.com/dhruvkaushik305/my-router

21.01.2025 17:19 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Preview
Unable to bundle Prisma for serverless functions ยท Issue #19036 ยท vitejs/vite Describe the bug I started with a default vercel template for react router v7, deployed it on vercel, everything works. Now when i add prisma and start the build, vite says ".prisma/client/default"...

I added prisma, vite started treating this as an external dep (github.com/vitejs/vite/...). Then i changed the output dir of the prisma client, then it says some __filename is cjs but used in modules etc. the minimal repo I made is github.com/dhruvkaushik305/myrouter. It's just the template+prisma

21.01.2025 17:17 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

And I missed this message ๐Ÿ˜‚

21.01.2025 17:11 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Yeah i said that because I saw they have their way of making it work. But it's deprecated now with rr7 so that's why I said we do need it for a while

21.01.2025 17:10 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Is there some other workaround?

21.01.2025 17:07 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Interesting. Why?

21.01.2025 17:07 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0

I kept facing commonjs import issues in the build every now and then so i thought maybe the template wasn't required. I went ahead and installed the vercel preset and realised this is old and isn't updated for the rr7. Instead they're recommending the template as a workaround

21.01.2025 16:18 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Yeah I've opened a discussion. Don't worry, this isn't important. I hope you get better very soon

21.01.2025 16:15 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

No i did realise we do ๐Ÿ˜…

21.01.2025 16:14 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

Changed the libsql driver to better-sqlite3. Though it still doesn't run. I am now beginning to doubt the template in the first place

21.01.2025 10:34 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

@ebey.bsky.social Vercel officially says to use their package @vercel/remix for deployment etc, why do we need the vercel template then?

21.01.2025 10:32 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Oh yeah I forgot it's not serverless. I'll try making drizzle work

21.01.2025 02:33 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Oh i just recalled, @kentcdodds.com wrote the todo mvc on remix with prisma hosted on @fly.io Maybe there were no issues with the database in the first place. It's just vercel somehow. I'll get my dad's credit card and fly tomorrow

20.01.2025 17:52 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Officially react router templates ship drizzle for the db. I'm sure there must be some caveat/config. It can also happen that there's some issue with the vercel template. I'll try it on a node one this week.

20.01.2025 17:28 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

@silvenon.com remember the prisma issue with vite? i replaced it with drizzle and now when i pushed to vercel, it still crashed. This is the repo that i was working on github.com/dhruvkaushik...
Any starting points to fix this?

20.01.2025 13:46 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Sure, thank you

15.01.2025 09:03 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Not sure how to reproduce though, I'll have to try

13.01.2025 18:02 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I was practicing remix with your vercel template and in the console I kept seeing this warning. So i asked if it's something common or really a bug that i should raise a request for

13.01.2025 18:01 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0
Post image

@ebey.bsky.social how do i attempt to fix this?

13.01.2025 14:30 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

How are these calculated?

01.01.2025 16:42 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

No I haven't done that, nor do i consider myself past the basics. That's why I came again to mend things for good. Lmk other cool stuff i missed, I'll make sure to stop by

01.01.2025 16:40 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

It's forcing us to think again ๐Ÿ˜‚

01.01.2025 16:39 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Exactly ๐Ÿ˜ญ๐Ÿ˜ญ

01.01.2025 16:38 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0