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

Issue: Ensure Cross-Version Node.js Compatibility with OpenSSL Legacy Provider #49

Open
iamridoydey opened this issue Nov 1, 2024 · 0 comments · May be fixed by #53
Open

Issue: Ensure Cross-Version Node.js Compatibility with OpenSSL Legacy Provider #49

iamridoydey opened this issue Nov 1, 2024 · 0 comments · May be fixed by #53

Comments

@iamridoydey
Copy link

iamridoydey commented Nov 1, 2024

Description

Contributors using Node.js v17 or later encounter a build error due to changes in OpenSSL handling. This error occurs when running docusaurus commands and is linked to the incompatibility of OpenSSL settings in newer Node.js versions. To enhance compatibility across different Node.js versions, we should add the NODE_OPTIONS=--openssl-legacy-provider flag directly in our package.json scripts.

Proposed Solution

Update the start and build scripts in package.json to include the NODE_OPTIONS flag. This will set the OpenSSL legacy provider and ensure compatibility without requiring contributors to manually adjust environment variables or downgrade their Node.js version.

Changes to Make

Update the package.json scripts as follows:

"scripts": {
  "start": "NODE_OPTIONS=--openssl-legacy-provider docusaurus start",
  "swizzle": "docusaurus swizzle",
  "build": "NODE_OPTIONS=--openssl-legacy-provider docusaurus build",
  "publish-gh-pages": "docusaurus deploy"
}

Further

I am working on that issue

Tasks

No tasks being tracked yet.
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 a pull request may close this issue.

1 participant