flotilla/build-in-production.sh

19 lines
395 B
Bash
Raw Normal View History

2025-05-07 01:26:48 +00:00
#!/usr/bin/env bash
2025-07-09 21:00:42 +00:00
set -e
2025-05-07 01:26:48 +00:00
# Fetch tags and set to env vars
2025-07-09 21:00:42 +00:00
git fetch --prune --unshallow --tags || true
git describe --tags --abbrev=0 || true
2025-05-07 01:26:48 +00:00
export VITE_BUILD_VERSION=$RENDER_GIT_COMMIT
export VITE_BUILD_HASH=$RENDER_GIT_COMMIT
# Install dependencies
2025-06-09 21:02:06 +00:00
CI=0 pnpm i
2025-05-07 01:26:48 +00:00
# Rebuild sharp
pnpm rebuild
# The build runs out of memory at times
NODE_OPTIONS=--max_old_space_size=16384 pnpm run build