Hi everyone. New to wrangler. Having

Hi everyone. New to wrangler. Having trouble getting setup for local dev in a monorepo. Currently have a sveltekit app that uses cloudflare-adapter. Also have a separate app as a queue consumer. Currently, because the sveltekit app doesn’t use wrangler dev, I’m having trouble accessing local bindings. Reaching out to see if anyone has a recommendation. I have both setup with persist to a local folder, correct environments.
1 Reply
bryce
bryceOP2w ago
For anyone who comes across this in the future. It does not appear to be do-able until the following github issues are resolved. https://github.com/cloudflare/workers-sdk/issues/8922 https://github.com/sveltejs/kit/pull/14008 My example use case: I was using a sveltekit frontend queue producer and backend queue consumer in separate apps (part of a monorepo). Because the vite plugin is not yet merged into svelte-kit, and we currently can not run separate wrangler devs for the sveltekit app + the queue consumer and have their bindings connect. I was able to reproduce a vite plugin frontend + queue consumer backend service using auxiliary workers here: https://github.com/BryceAMcDaniel/cloudflare-queue-test. Presumaly, we could build the svelte app each time and run a vite plugin to connect the workers, but I have not tried this yet. Best
GitHub
feature request: vite plugin with sveltekit · Issue #8922 · cloud...
Which Cloudflare product(s) does this pertain to? Vite Plugin What versions & operating system are you using? macOS Please provide a link to a minimal reproduction No response Describe the Bug ...
GitHub
feat: Vite environment API by eltigerchino · Pull Request #14008 ...
closes #13692 closes #1712 part of #3535 closes #13739 closes #13357 closes #12637 w.i.p and still has a lot of problems to solve. Needed to open this PR to test installing this from pkg.pr.new sin...

Did you find this page helpful?