17 lines
425 B
Bash
17 lines
425 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
export DISABLE_REACT_COMPILER=1
|
|
export NEXT_TELEMETRY_DISABLED=1
|
|
export NEXT_PUBLIC_SITE_URL="${NEXT_PUBLIC_SITE_URL:-https://edu.mstaut.ir}"
|
|
export NODE_OPTIONS="${NODE_OPTIONS:---max-old-space-size=3072}"
|
|
|
|
npm ci --no-audit --no-fund
|
|
npm run build
|
|
test -f .next/standalone/server.js
|
|
test -f .next/BUILD_ID
|
|
|
|
bash scripts/assemble-prebuilt.sh "$(pwd)/prebuilt"
|