I can't get `wrangler dev` to work with kv
As the title states I'm trying to develop a pages app with functions for a very small backend, but I cannot get kv to work.
Attached are the errors when running wrangler dev.
I have followed
https://developers.cloudflare.com/pages/framework-guides/deploy-a-svelte-site/
and then even checked
https://blog.cloudflare.com/blazing-fast-development-with-full-stack-frameworks-and-cloudflare/
I created the project using C3.
This seems to be a very common problem and I've seen issues about it since 2022 on github but everything seems to be magically fixed, except it doesn't work, at least for me
my wrangler.toml
Cloudflare Docs
SvelteKit | Cloudflare Pages docs
Learn how to use Cloudflare's features with SvelteKit
The Cloudflare Blog
Blazing fast development with full-stack frameworks and Cloudflare
You can now use your framework’s development server while accessing D1 databases, R2 object stores, AI models, and more. Iterate locally in milliseconds to build sophisticated web apps that run on Cloudflare
1 Reply
package.json
I also get this when the app build in the deployed pages:
ok so I should be settings this is it
nvm https://developers.cloudflare.com/pages/configuration/build-configuration/#framework-presets
Everything works with just vite dev
just changed my wrangler.toml to
also it's
pages_build_output_dir
according to https://developers.cloudflare.com/pages/functions/wrangler-configuration/
What should I set it to? this is .svelte-kit madness, there's no definitive output folder here, more like 4 folders with weird files in them
.svelte-kit/output/client
? why are there so many folderswrangler pages dev
, not wrangler dev
Internet resources and most stuff is just outdated except for the documentation, which is quite good, congrats