Handling environment variables when Deploying a Static Site with NPM Scripts and Cloudflare Pages
Problem
When deploying a static site with NPM scripts that utilize bash commands and environment variables inside package.json scripts, you might define something like:
"scripts": {
"transpile-js": ". .env; for file in "\${JS_FILES[@]}"; do(b...
ntheanh201.hashnode.dev1 min read