-
Notifications
You must be signed in to change notification settings - Fork 13
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
ci(documentation-website): lighthouse check with nginx #11
base: the-one
Are you sure you want to change the base?
ci(documentation-website): lighthouse check with nginx #11
Conversation
Replace nodejs lighthouse test with nginx because of poor performance score. Closes #953
WalkthroughThe changes involve transitioning from a Node.js environment to an Nginx-based setup for running Lighthouse checks on the documentation website. This includes configuring Nginx, modifying the workflow to support these changes, and simplifying the Lighthouse script in the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing!
Please make sure the actions pass. Once your pull request has been merged, you will automatically be added to the contributor's list on the website.
If you want to be shouted out on Linkedin, have a look for the shoutout issue of the specific version.
You can also find us on slack at idrinth-api-bench.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
Review Details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/documentation-website.lighthouse-check.yml (2 hunks)
- nginx.conf (1 hunks)
Additional comments not posted (1)
.github/workflows/documentation-website.lighthouse-check.yml (1)
48-49
: Consider verifying the installation of dependencies before running the Lighthouse check.
- Removed unnecessary settings from nginx file such as SSL Settings, Virtual Host Configs, Proxy pass to the Node.js application - Update npm script from lighthouse-check file Closes #953 Co-Authored-By: Björn Büttner <[email protected]>
…/itsmacr8/documentation-website into documentation-website-issue-#953
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review Details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (2)
- .github/workflows/documentation-website.lighthouse-check.yml (2 hunks)
- nginx.conf (1 hunks)
Files skipped from review due to trivial changes (1)
- nginx.conf
Additional comments not posted (2)
.github/workflows/documentation-website.lighthouse-check.yml (2)
39-45
: CodeRabbit observes that the installation and configuration of Nginx are correctly implemented.
46-49
: CodeRabbit queries the execution of Node.js commands under Nginx environment. Clarify the integration between Nginx and Node.js in this context.
Let me know if more changes are needed, @Idrinth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a merge conflict as well, please fix that :)
update lighthouse npm script update nginx server configuration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (2)
- nginx.conf (1 hunks)
- package.json (1 hunks)
Files skipped from review due to trivial changes (1)
- package.json
Additional comments not posted (3)
nginx.conf (3)
2-4
: User and worker settings are correctly configured for Nginx.
16-21
: HTTP settings are optimized for performance. Disablingserver_tokens
enhances security by not sending server version information.
35-42
: The root directory is set to serve static files from thedist
directory, which aligns with the static nature of the documentation website. Cache control headers are appropriately set to prevent caching during development.
gzip on; | ||
gzip_disable "msie6"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gzip compression is enabled, which is beneficial for performance. However, consider updating the gzip_disable
directive to reflect more current browsers.
- gzip_disable "msie6";
+ gzip_disable "msie6|msie7";
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
gzip on; | |
gzip_disable "msie6"; | |
gzip on; | |
gzip_disable "msie6|msie7"; |
|
||
# Events block for handling connections | ||
events { | ||
worker_connections 768; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider enabling multi_accept
to handle multiple connections more efficiently.
- # multi_accept on;
+ multi_accept on;
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
worker_connections 768; | |
worker_connections 768; | |
multi_accept on; |
- 'documentation-website/**.ts' | ||
- 'documentation-website/**.tsx' | ||
- 'documentation-website/**.js' | ||
- 'documentation-website/**.cjs' | ||
- 'documentation-website/package-lock.json' | ||
- '.github/workflows/documentation-website.lighthouse-check.yml' | ||
pull_request: | ||
branches: | ||
- the-one | ||
paths: | ||
- 'documentation-website/**.ts' | ||
- 'documentation-website/**.tsx' | ||
- 'documentation-website/**.js' | ||
- 'documentation-website/**.cjs' | ||
- 'documentation-website/package-lock.json' | ||
- '.github/workflows/documentation-website.lighthouse-check.yml' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is that pointing to documentation-website
? That folder exists nowhere
Replace nodejs lighthouse test with nginx because of poor performance score.
Closes #953
The Pull Request is ready
Overview
Review points
Documentation-Website
Notes