Adapter Cloudflare and a good local development story? #2934
Unanswered
jaymakes11
asked this question in
Q&A
Replies: 3 comments
-
@lukeed Knowing that you're with Cloudflare and also a contributor here, perhaps you have some insight on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
For others following this thread, see also: #2966 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've also written the simple solution (or workaround) here. I hope it will be helpful to you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does anyone know if it's possible yet to have a good development story when using Adapter Cloudflare?
I'd love a way to run https://github.com/cloudflare/wrangler2 and
svelte-kit dev
and have everything "just work." And by "everything" here I mean access to Cloudflare's KV and Durable Objects and of course really fast HMR.Note: I have in mind here Cloudflare Pages (not Workers, directly).
My attempts so far have gotten me to this:
The problem with this is that file changes do not update what's being served, nor do they update in the browser. Sveltekit (via Vite) is serving things from memory (as I understand it), but wrangler (beta) is serving the built site that lives in
.svelte-kit/cloudflare/
.Beta Was this translation helpful? Give feedback.
All reactions