Skip to content

Commit

Permalink
feat: add Node.js 23 and update docs reference
Browse files Browse the repository at this point in the history
A recent patch update on 22x is required for vite/react router compatibility
  • Loading branch information
iloveitaly committed Jan 20, 2025
1 parent 6e8a1b9 commit 53d56c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/pages/docs/providers/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The following major versions are available
- `18` (Default)
- `20`
- `22`
- `23`

The version can be overridden by

Expand Down
4 changes: 3 additions & 1 deletion src/providers/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ mod nx;
mod spa;
mod turborepo;

// allows package manager versions to be updated without cutting a new nixpacks binary
pub const NODE_OVERLAY: &str = "/~https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz";

const NODE_NIXPKGS_ARCHIVE: &str = "5624e1334b26ddc18da37e132b6fa8e93b481468";
// unlike package managers, {node,bun} versions are pinned to a particular nixpacks release
const NODE_NIXPKGS_ARCHIVE: &str = "ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7";

// We need to use a specific commit hash for Node versions <16 since it is EOL in the latest Nix packages
const NODE_LT_16_ARCHIVE: &str = "bf744fe90419885eefced41b3e5ae442d732712d";
Expand Down

0 comments on commit 53d56c9

Please sign in to comment.