Skip to content

Commit

Permalink
Made v4 the default build version
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-weinberg committed Aug 16, 2023
1 parent ca3596b commit c29617f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
npm ci
npm run build-v4
npm run build
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ echo "Backend hostname: $BACKEND_HOSTNAME"
echo "CloudFormation stack name: $CF_STACK_NAME"

# build frontend
npm run build-v4
npm run build

pushd server/ > /dev/null
poetry export --without-hashes --output requirements.txt
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@
"start": "concurrently npm:start-python npm:start-react",
"start-python": "cd server && poetry run chalice local --port=5000",
"start-react": "npm run get-data && next dev",
"build": "next build && rm -rf build/static/slowzones",
"build-v4": "next build && next export && rm -rf build/static/slowzones",
"serve-static": "npm run build-v4 && serve out",
"build": "next build && next export && rm -rf build/static/slowzones",
"build-v3": "next build && rm -rf build/static/slowzones",
"serve-static": "npm run build && serve out",
"get-data": "npm run get-sz-totals && npm run get-szs && npm run get-speed-restrictions && npm run get-landing-trip-metrics && npm run get-landing-ridership",
"get-sz-totals": "wget -N -x -nH -P public https://dashboard.transitmatters.org/static/slowzones/delay_totals.json",
"get-landing-trip-metrics": "wget -N -x -nH -P public https://dashboard.transitmatters.org/static/landing/trip_metrics.json",
Expand Down

0 comments on commit c29617f

Please sign in to comment.