Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use production mode #904

Merged
merged 4 commits into from
Feb 27, 2024

Conversation

davidegirardi
Copy link
Contributor

Set NODE_ENV to production to increase performance and document it.

This also disabled the X-Powered-By header to avoid false positives by bad quality security scanners.

@davidegirardi davidegirardi requested a review from a team as a code owner February 27, 2024 13:57
Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please add a changelog file :)

docs/setup.md Outdated
@@ -27,7 +27,11 @@ cd matrix-hookshot
yarn # or npm i
```

Starting the bridge (after configuring it), is a matter of running `yarn start`.
Starting the bridge (after configuring it), is a matter of setting the `NODE_ENV` environment variable to `production` or `development` and then running it:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we explain what this does?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 2b85060.

@Half-Shot Half-Shot merged commit 9a6d431 into matrix-org:main Feb 27, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants