how to deploy DO with pages?
Hey this is really frustrating.
I have a SvelteKit app and I made it so that
‘.svelte-kit/cloudflare/_worker.js’ exports my DO (class)
But I cannot access it from my deployed sveltekit app ‘env.DO’ is undefined and can’t create any binding from the dashboard, it sends me to workers docs where they use wrangler.toml and that is not used by pages so please help me out…
9 Replies
Like, I love the idea of workers (pages), DO etc. but so far DX has been not very good to put it nicely
You can only deploy DOs with Workers
I see, so using the sveltekit workers adapter should get me there?
That, or just using Functions, then deploy your DO Code in a separate Worker
Then you still get the benefit of free static Pages Requests
ah okey. and once deployed via separate worker I should be able to bind it from the dash to my pages app?
That is correct
I can work with that :) Maybe put that information somewhere in the docs
how can mark this solved?
Got it
<3