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

Make sure next-build uses node v18 everywhere. #19298

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 5 additions & 1 deletion scripts/next-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ source ~/.bashrc

cd next

APP_ENV=tugboat yarn build:preview
# Make sure the correct node version is installed and in use
nvm install 18.17.0
nvm use 18.17.0

APP_ENV=tugboat yarn build:preview
4 changes: 3 additions & 1 deletion scripts/next-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ cd next
#repo_root="$(git rev-parse --show-toplevel)"
#pushd "${repo_root}" > /dev/null

nvm install 18.17.0
# Make sure the correct node version is installed and in use
nvm install 18.17.0
nvm use 18.17.0

corepack enable
corepack prepare yarn@stable --activate
echo "Node $(node -v)"
Expand Down
4 changes: 4 additions & 0 deletions scripts/next-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ source ~/.bashrc

cd next

# Make sure the correct node version is installed and in use
nvm install 18.17.0
nvm use 18.17.0

# Start the dev server. Vets-website assets will be available to the preview server after content-build builds them.
# APP_ENV=tugboat yarn dev

Expand Down
Loading