How to set platform to node for adapter-cloudflare-workers? #10731
Unanswered
HuakunShen
asked this question in
Q&A
Replies: 1 comment 3 replies
-
From your link, it looks like the redis dependency might need to have its imports updated:
I ran into something similar once, and the solution was to switch to a different dependency, for better or worse. It's Cloudflare related, not Svelte related. If you can move services, you could try upstash, which offers serverless redis: https://upstash.com/ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using @sveltejs/adapter-cloudflare-workers to build my sveltekit app but got the following error
I searched the documentation of sveltekit and cloudflare but couldn't find where I can set the platform.
The only related doc I found was https://developers.cloudflare.com/workers/runtime-apis/nodejs/. But setting this in
wrangler.toml
didn't help.Beta Was this translation helpful? Give feedback.
All reactions