Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update netlify build
  • Loading branch information
krofax committed Mar 6, 2025
commit 7b16cf7aa798d990a49acbd8645448710c2b273b
8 changes: 6 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build]
command = "pnpm install --no-frozen-lockfile && pnpm build"
publish = ".next"

[build.environment]
PNPM_VERSION = "10.2.0"
NODE_VERSION = "20.11.0"
NODE_VERSION = "20.11.0"
NPM_FLAGS = "--no-frozen-lockfile"
Comment on lines +6 to +7
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Ensure consistent Node version across environments

The specified Node version (20.11.0) should be consistent with other environments. Also, the NPM_FLAGS setting with --no-frozen-lockfile aligns with the CircleCI configuration, which is good for consistency.


🏁 Script executed:

#!/bin/bash
# Check for Node version specifications across different configuration files
echo "Checking Node version specifications:"
grep -r "node" --include="*.yml" --include="*.json" --include="Dockerfile" . | grep -E "version|image"

Length of output: 284


Align Node Versions Between Netlify and CircleCI

  • File: netlify.toml (Lines 6-7)
    The configuration currently specifies:

      NODE_VERSION = "20.11.0"
      NPM_FLAGS = "--no-frozen-lockfile"
    
  • File: .circleci/config.yml
    The Node image is set as:

        - image: cimg/node:20.11.1 # Prebuilt CircleCI image for Node.js 20.x
    

To ensure consistency across environments, please update the Node version in netlify.toml to match the version used in the CircleCI configuration (i.e., update from "20.11.0" to "20.11.1"), unless there is a specific reason for the discrepancy.