shay
shay
Explore posts from servers
CDCloudflare Developers
Created by shay on 7/8/2024 in #workers-help
Unable to bind durable objects on Remix + Vite project
No, I ended up shelving this and staying on the classic app server :( sorry
4 replies
DIAdiscord.js - Imagine an app
Created by shay on 7/11/2024 in #djs-questions
Non-internal sharding without using a full `Client` instance
if I mark this as solved am I still able to come back later and post what I end up writing or will it be locked?
21 replies
DIAdiscord.js - Imagine an app
Created by shay on 7/11/2024 in #djs-questions
Non-internal sharding without using a full `Client` instance
ok, thanks for the help
21 replies
DIAdiscord.js - Imagine an app
Created by shay on 7/11/2024 in #djs-questions
Non-internal sharding without using a full `Client` instance
oh, is WebSocketManager able to shard non-internally? I thought I needed an external manager process
21 replies
DIAdiscord.js - Imagine an app
Created by shay on 7/11/2024 in #djs-questions
Non-internal sharding without using a full `Client` instance
I couldn't find the submodule it was a member of, what's it from?
21 replies
DIAdiscord.js - Imagine an app
Created by shay on 7/11/2024 in #djs-questions
Non-internal sharding without using a full `Client` instance
because ShardingManager is only in d.js proper?
21 replies
DIAdiscord.js - Imagine an app
Created by shay on 7/11/2024 in #djs-questions
Non-internal sharding without using a full `Client` instance
so I guess a better form of my question would be, how can I shard like this without installing d.js proper
21 replies
DIAdiscord.js - Imagine an app
Created by shay on 7/11/2024 in #djs-questions
Non-internal sharding without using a full `Client` instance
Yeah, but it doesn't seem like I can use ShardingManager without installing d.js
21 replies
DTDrizzle Team
Created by shay on 7/7/2024 in #help
One-to-many relation always returning no records for the `many` relation
oh! thanks so much, I don't know how I didn't see that. and sorry about the playground, oops
7 replies
DTDrizzle Team
Created by shay on 7/7/2024 in #help
One-to-many relation always returning no records for the `many` relation
I would provide a working drizzle.run for this but for some reason it's not creating the tables. I have to go but here's what I have https://drizzle.run/n2z8f3privcq6y53sv8bfawo
7 replies
DTDrizzle Team
Created by maxpaj on 3/23/2024 in #help
Understanding what's colliding at db-push (Warning: Found data-loss statements)
will do
6 replies
DTDrizzle Team
Created by maxpaj on 3/23/2024 in #help
Understanding what's colliding at db-push (Warning: Found data-loss statements)
dang
6 replies
DTDrizzle Team
Created by maxpaj on 3/23/2024 in #help
Understanding what's colliding at db-push (Warning: Found data-loss statements)
@maxpaj hey, did you ever resolve this issue? i'm just as confused lol - i have to drop data every time even though the prospective changes are already applied
6 replies
CDCloudflare Developers
Created by shay on 2/8/2024 in #workers-help
Failed module resolutions using `pg` and Drizzle
Resolved the issue by switching to postgres over pg. It's relatively drop-in since I'm using drizzle. Just hoping it'll work properly outside of the local environment - I was using pg because the drizzle documentation uses it in the Workers example.
3 replies
CDCloudflare Developers
Created by shay on 2/8/2024 in #workers-help
Failed module resolutions using `pg` and Drizzle
I've managed to get the server to start successfully (with a warning about duplicate object keys being generated in the build, for some reason) by polyfilling the missing modules in remix.config.js:
serverNodeBuiltinsPolyfill: {
modules: {
fs: true,
events: true,
assert: true,
dns: true,
net: true,
crypto: true,
tls: true,
path: true,
stream: true,
},
globals: {
process: true,
},
},
serverNodeBuiltinsPolyfill: {
modules: {
fs: true,
events: true,
assert: true,
dns: true,
net: true,
crypto: true,
tls: true,
path: true,
stream: true,
},
globals: {
process: true,
},
},
and by enabling node_compat in wrangler.toml. So while this does allow the server to start, once the Pool is actually created, I receive the following: ✘ [ERROR] Error: Node.js net module is not supported by JSPM core outside of Node.js What can I do about this? I assume this is because of my polyfilling, can I do this without polyfilling?
3 replies