Skip to content

Commit ae676bd

Browse files
Fix: Update script extension for wrangler config update to .cjs for CommonJS compatibility
1 parent 45594a2 commit ae676bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232

3333
- name: Update wrangler config with environment variables
3434
run: |
35-
# Create script to update wrangler.jsonc
36-
cat > update_config.js << 'EOF'
35+
# Create script to update wrangler.jsonc (using .cjs extension for CommonJS)
36+
cat > update_config.cjs << 'EOF'
3737
const fs = require('fs');
3838
3939
try {
@@ -66,7 +66,7 @@ jobs:
6666
}
6767
EOF
6868
69-
node update_config.js
69+
node update_config.cjs
7070
7171
- name: Deploy to Cloudflare Workers
7272
uses: cloudflare/wrangler-action@v3

0 commit comments

Comments
 (0)