orstavik77
04/22/2022, 8:26 AMnpx wrangler <download copy of KV=TEST_DB to my local machine so I can test it>
command first?orstavik77
04/22/2022, 8:33 AMorstavik77
04/22/2022, 8:41 AMTEST
so that there would be no difference between the two. Still null
locally. When I console.log(env.TEST)
locally, i get KVNameSpace {}
. It works fine up on the server.Skye
04/22/2022, 8:42 AMorstavik77
04/22/2022, 8:43 AMSkye
04/22/2022, 8:44 AM--kv TEST
in your command (or whatever you call your namespace), it creates a local version in your filesystem which has no initial dataSkye
04/22/2022, 8:44 AMorstavik77
04/22/2022, 9:19 AMnpx wrangler kv:namespace
and then kv:put
commands. Which worked after a little while. Worked on the server that is (which i don't need). But not locally (which i do need). Ok. Delete that. Move on.
Second attempt was.. should I make a custom worker that will fill the table with some startup data? And that worked. That created the .mf>kv>TEST
folder with "hello" file with the content "world". and a "hello.meta.json" too, just to test.
So. My final question is. To create a local KV store for local test purposes, should I just create these files manually? So that I have something to read?orstavik77
04/22/2022, 9:21 AMSkye
04/22/2022, 9:21 AMSkye
04/22/2022, 9:21 AMamancoder28
04/25/2022, 4:56 AMpatrickheneise
04/25/2022, 9:03 AMconst req = await fetch('https://api.sendgrid.com/v3/mail/send', {
method: 'POST', ...
which fails with a CORS error 😦kian
04/25/2022, 9:08 AMkian
04/25/2022, 9:08 AMpatrickheneise
04/25/2022, 9:13 AMIsaac McFadyen | YYZ01
04/25/2022, 1:08 PMIsaac McFadyen | YYZ01
04/25/2022, 1:09 PMorstavik77
04/25/2022, 1:45 PMorstavik77
04/25/2022, 1:59 PM! ThaUnknown_
04/25/2022, 10:37 PMAngius
04/25/2022, 11:22 PMJames
04/25/2022, 11:23 PMAngius
04/25/2022, 11:23 PMAngius
04/25/2022, 11:24 PM! ThaUnknown_
04/25/2022, 11:29 PM! ThaUnknown_
04/25/2022, 11:29 PM! ThaUnknown_
04/25/2022, 11:30 PM