Skip to content

fix(app-router): correct PM2 ecosystem env block JS syntax#125

Open
TechNickAI wants to merge 1 commit into
mainfrom
fix/app-router-pm2-js-syntax
Open

fix(app-router): correct PM2 ecosystem env block JS syntax#125
TechNickAI wants to merge 1 commit into
mainfrom
fix/app-router-pm2-js-syntax

Conversation

@TechNickAI

Copy link
Copy Markdown
Owner

Summary

  • Fixes invalid JavaScript in the PM2 ecosystem.config.js code example in devops/app-router/README.md
  • Changed trailing semicolon to trailing comma inside the env: {} object literal (semicolons are invalid in JS object literals)
  • Without this fix, users copying the snippet get a PM2 parse error and OPENCLAW_HOOK_TOKEN never gets set, breaking the webhook bearer-injection flow

Context

Caught by Codex review bot on PR #124 (already merged). One-line fix.

Test plan

  • Visually verify the code block in README renders correctly
  • Confirm ecosystem.config.js with this snippet would parse without error

🤖 Generated with Claude Code

Trailing semicolon inside an object literal is invalid JavaScript. Users
copying the `ecosystem.config.js` snippet would get a parse error from PM2,
breaking the OPENCLAW_HOOK_TOKEN env injection for the webhook bearer flow.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@TechNickAI TechNickAI added review-sweep Follow-up fixes from PR review comments Hex Created by Hex labels May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hex Created by Hex review-sweep Follow-up fixes from PR review comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant