#!/bin/bash

if [ "$(tr '[:upper:]' '[:lower:]' <<<"$NODE_ENV")" = "production" ]; then
    npm run build:prod
fi


exec "$@"

#!/bin/bash

if [ "$(tr '[:upper:]' '[:lower:]' <<<"$NODE_ENV")" = "production" ]; then
    npm run build:prod
    git rev-parse HEAD >.build/revision
fi


exec "$@"

Add a static file serving the build's git revision
Add a static file serving the build's git revision
