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
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
@sergiodxa.com I want to create a multiplayer typing game using remix. I am actually confused whether to use SSE or Websockets
Understood
@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?
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
No i did not touch the vite config
I didn't know about drizzle before
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
And I missed this message ๐
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
Is there some other workaround?
Interesting. Why?
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
Yeah I've opened a discussion. Don't worry, this isn't important. I hope you get better very soon
No i did realise we do ๐
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
@ebey.bsky.social Vercel officially says to use their package @vercel/remix for deployment etc, why do we need the vercel template then?
Oh yeah I forgot it's not serverless. I'll try making drizzle work
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
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.
@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?
Sure, thank you
Not sure how to reproduce though, I'll have to try
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
@ebey.bsky.social how do i attempt to fix this?
How are these calculated?
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
It's forcing us to think again ๐
Exactly ๐ญ๐ญ