Skip to content

Commit

Permalink
Unset the PREFIX environment variable when building VTAdmin (vitessio…
Browse files Browse the repository at this point in the history
  • Loading branch information
frouioui committed Jul 20, 2023
1 parent 830a114 commit 7e58261
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ endif
-o ${VTROOTBIN} ./go/...
ifndef NOVTADMINBUILD
echo "Building VTAdmin Web, disable VTAdmin build by setting 'NOVTADMINBUILD'"
./web/vtadmin/build.sh
PREFIX="" ./web/vtadmin/build.sh
endif

# cross-build can be used to cross-compile Vitess client binaries
Expand Down
2 changes: 2 additions & 0 deletions web/vtadmin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ nvm install "$NODE_VERSION" || fail "Could not install and use nvm $NODE_VERSION

npm --prefix "$web_dir" --silent install

export PATH=$PATH:$web_dir/node_modules/.bin/

VITE_VTADMIN_API_ADDRESS="http://${hostname}:${vtadmin_api_port}" \
VITE_ENABLE_EXPERIMENTAL_TABLET_DEBUG_VARS="true" \
npm run --prefix "$web_dir" build

0 comments on commit 7e58261

Please sign in to comment.