Handling environment variables when Deploying a Static Site with NPM Scripts and Cloudflare Pages
Aug 26, 2024 · 1 min read · 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...
Join discussion