Skip to content

Commit

Permalink
Set NODE_ENV in entry.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbarnes committed Feb 24, 2025
1 parent 5974062 commit 43e8ec3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions entry.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/sh -e

# Set NODE_ENV to production only in staging and prod environments
if [ "$ENVIRONMENT" = "staging" ] || [ "$ENVIRONMENT" = "prod" ]; then
export NODE_ENV=production
else
export NODE_ENV=development
fi

# Install Node.js dependencies
echo "Installing node modules..."
npm install
Expand Down

0 comments on commit 43e8ec3

Please sign in to comment.