diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 1e88d3a69..11a33e5ba 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: - node-version: '18.x' + node-version: "22.x" - name: Test build env: TARGET_URL: "https://docs.flashbots.net" diff --git a/.nvmrc b/.nvmrc index 3f430af82..53d1c14db 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18 +v22 diff --git a/README.md b/README.md index eb2d24b37..2725c32dc 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern ## Installation -Use Node.js v18+ +Use Node.js v22.18+ Note: if you want to install the node packages from within a Docker container (recommended for security), then you can start it like this: ```bash -docker run -p 3000:3000 --rm -it -w /mnt -v $(pwd):/mnt node:18 /bin/bash +docker run -p 3000:3000 --rm -it -w /mnt -v $(pwd):/mnt node:22.18.0 /bin/bash ``` First create a copy of the environment file `.env.template` in the root of the codebase and rename it to `.env` diff --git a/docusaurus.config.js b/docusaurus.config.js index 5a7a40480..e65c1e82f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -100,7 +100,7 @@ module.exports = async function createConfigAsync() { }), ], ], - plugins: [ + plugins: [ // eslint-disable-next-line @typescript-eslint/no-unused-vars async function tailwindcssSupport(context, options) { return { diff --git a/package.json b/package.json index 0705b12f5..898b85bfc 100644 --- a/package.json +++ b/package.json @@ -101,6 +101,6 @@ "typescript": "^5.2.2" }, "engines": { - "node": ">=18.0" + "node": ">=22.18.0" } }