Skip to content

Commit

Permalink
Update 10.deployment.md
Browse files Browse the repository at this point in the history
When deploy with .js extend got malformatted error in pm2:
[PM2][ERROR] File ecosystem.config.js malformated
Error [ERR_REQUIRE_ESM]

this error is fix when i using .cjs extension intead
  • Loading branch information
caporalCode committed Jan 27, 2024
1 parent a995f72 commit d8a1b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/1.getting-started/10.deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ It respects the following runtime environment variables:

To use `pm2`, use an `ecosystem.config.js`:

```ts [ecosystem.config.js]
```ts [ecosystem.config.cjs]
module.exports = {
apps: [
{
Expand Down

0 comments on commit d8a1b44

Please sign in to comment.