João Castro
02/23/2023, 2:43 PMJoão Castro
02/23/2023, 3:48 PMJames
02/23/2023, 3:52 PM_routes to exclude an assets dir or similar from running Functions: https://developers.cloudflare.com/pages/platform/functions/routing/#functions-invocation-routesJoão Castro
02/23/2023, 3:55 PMNoodles
02/23/2023, 4:28 PMJames
02/23/2023, 4:48 PMwrangler pages publish .?James
02/23/2023, 4:49 PMJames
02/23/2023, 4:50 PMaddEventListener and such. You need to use specific Functions syntax like onRequestGet, etc: https://developers.cloudflare.com/pages/platform/functions/get-started/Noodles
02/23/2023, 4:51 PMjgarr
02/23/2023, 5:40 PMHardAtWork
02/23/2023, 5:41 PMjgarr
02/23/2023, 5:41 PMjgarr
02/23/2023, 5:46 PM?email=submit to disable the subscribe button. But I also have a signup form at the bottom of the posts eg https://justingarrison.com/blog/2023-02-23-ec2-names-explained/ and I'd like to send them back to the post they were on. My only thought was to create a hidden field part of the form that contains the path and use that in the functionjgarr
02/23/2023, 5:46 PMHardAtWork
02/23/2023, 5:49 PMjgarr
02/23/2023, 5:50 PMzszszsz
02/23/2023, 9:34 PM/, /foo/bar/.../, or /foo/bar/baz, or /**/*.html or /**/index.html, but not /**/*.js or /**/*.css, (or .jpg, .svg, .txt, .webmanifest, .json or so), is it doable currently with dynamic routing ?hanpolo
02/23/2023, 11:23 PMnpx wrangler pages dev --kv=USER -- npm starthanpolo
02/23/2023, 11:24 PMhanpolo
02/23/2023, 11:24 PMzszszsz
02/23/2023, 11:54 PMzszszsz
02/23/2023, 11:55 PM.wranlger/state/kv/<bind-name>/<key> with the value as contenthanpolo
02/24/2023, 12:32 AMnpx wrangler pages dev --kv=TEST -- npm start
2. created a file:
~/.wrangler/state/kv/TEST/BUG_TEST
3. put the value 'TEST1' inside BUG_TEST
4. Read the value from file:
const test = await context.env.TEST.get('BUG_TEST');
console.log(`test=${test}`);
5. Got the value 'null'
6. To confirm the namespace works I did another test right after:
await context.env.TEST.put('BUG_TEST','THIS IS A TEST');
const after = await context.env.TEST.get('BUG_TEST');
console.log(`after=${after}`);
7. This one yielded "THIS IS A TEST"zszszsz
02/24/2023, 12:34 AM~/.wrangler, it should be ./.wranglerzszszsz
02/24/2023, 12:36 AMawait context.env.TEST.put('BUG_TEST','THIS IS A TEST'), you should have already have that file righthanpolo
02/24/2023, 12:42 AMhanpolo
02/24/2023, 12:42 AMhanpolo
02/24/2023, 12:43 AMzszszsz
02/24/2023, 12:45 AMzszszsz
02/24/2023, 12:53 AM--persist