diff --git a/code/websites/pokedex.online/deploy.sh b/code/websites/pokedex.online/deploy.sh index b4fcf8f..b02f52a 100755 --- a/code/websites/pokedex.online/deploy.sh +++ b/code/websites/pokedex.online/deploy.sh @@ -154,9 +154,10 @@ check_prerequisites() { fi log_success "Dependencies installed" - # Check if server dependencies are installed - if [ ! -d "$PROJECT_ROOT/server/node_modules" ]; then - log_error "Server dependencies not installed. Run 'npm install --workspace=server' first" + # Check if server dependencies are installed (workspaces hoist to root node_modules) + # Check for key server dependencies in root node_modules + if [ ! -d "$PROJECT_ROOT/node_modules/express" ] || [ ! -d "$PROJECT_ROOT/node_modules/cors" ]; then + log_error "Server dependencies not installed. Run 'npm install' first" exit 1 fi log_success "Server dependencies installed"