Lostballoon
02/26/2022, 1:48 AM--binding ENV_NAME=\"ENV_VALUE\"
Isaac McFadyen | YYZ01
02/26/2022, 1:48 AM--binding $(cat .env)
(make sure your .env has no spaces or quotes).Lostballoon
02/26/2022, 1:50 AMIsaac McFadyen | YYZ01
02/26/2022, 1:50 AM.env
file could be committed to Version Control. I wouldn't recommend it considering it's very common for people to put secrets in there cause they assume it's not committed, but it's possible if you're careful.Lostballoon
02/26/2022, 1:51 AMRaifY
02/26/2022, 9:07 AM@ssttevee/cfw-formdata-polyfill
can only handle uploads from requests, so if I want to build a new form containing a file, what should I do?JustinNoel
02/26/2022, 9:22 AM.env
file there for another dev to be able to know what variables to use and then fill it out.
I'd recommend a file named .env.template
. That way, it's clear this is the .env
file without the actual values.
I'd be very worried someone along the way would mistakenly commit the real .env
file changes with the secrets in it.RaifY
02/26/2022, 10:41 AMLostballoon
02/26/2022, 2:31 PMkian
02/26/2022, 2:38 PMLostballoon
02/26/2022, 3:03 PM\"
Isaac McFadyen | YYZ01
02/26/2022, 3:07 PM--binding
hack. I couldn't figure out how to make it work, actually.Kai
02/26/2022, 5:51 PMGreg Brimble | Cloudflare Pages
02/26/2022, 6:06 PMGreg Brimble | Cloudflare Pages
02/26/2022, 6:07 PMKai
02/26/2022, 6:09 PMIsaac McFadyen | YYZ01
02/26/2022, 6:10 PMKai
02/26/2022, 6:10 PMKai
02/26/2022, 6:11 PMKai
02/26/2022, 6:11 PMIsaac McFadyen | YYZ01
02/26/2022, 6:12 PM/shop.ts
/shop/[slug].ts
Isaac McFadyen | YYZ01
02/26/2022, 6:12 PMIsaac McFadyen | YYZ01
02/26/2022, 6:13 PMIsaac McFadyen | YYZ01
02/26/2022, 6:14 PMGreg Brimble | Cloudflare Pages
02/26/2022, 6:14 PMKai
02/26/2022, 6:16 PMGreg Brimble | Cloudflare Pages
02/26/2022, 6:17 PMIsaac McFadyen | YYZ01
02/26/2022, 6:17 PMKai
02/26/2022, 6:20 PMHardAtWork
02/26/2022, 6:20 PM_worker.js
.