Skip to content

Commit

Permalink
⚠️ [INF-547] SSR Track Page (#7213)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype authored Jan 24, 2024
1 parent d557552 commit 7b53f91
Show file tree
Hide file tree
Showing 255 changed files with 3,523 additions and 1,715 deletions.
20 changes: 3 additions & 17 deletions .circleci/src/commands/@web-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,6 @@ web-distribute:
$SLACK_DAILY_DEPLOY_WEBHOOK
fi
web-install-wrangler:
steps:
- run:
name: install wrangler
command: 'cd packages/web && npm install @cloudflare/wrangler'

web-deploy-cloudflare:
parameters:
build-type:
Expand All @@ -174,20 +168,11 @@ web-deploy-cloudflare:
- checkout
- attach_workspace:
at: ./
- web-install-wrangler
# - run:
# name: Move sourcemaps
# command: |
# cd packages/web
# mkdir -p sourcemaps/static/js
# mv build-<< parameters.build-type >>/static/js/*.map sourcemaps/static/js
- run:
name: Set up workers site
name: Move build
command: |
cd packages/web/scripts/workers-site
npm i
cd ../../
mv build-<< parameters.build-type >> build
mv build-ssr-<< parameters.build-type >> build-ssr
- run:
name: Copy robots.txt
command: |
Expand All @@ -198,6 +183,7 @@ web-deploy-cloudflare:
command: |
cd packages/web
echo ${GA_ACCESS_TOKEN} | npx wrangler secret put GA_ACCESS_TOKEN --env << parameters.environment >>
npx wrangler publish --config ./src/ssr/wrangler.toml --env << parameters.environment >>
npx wrangler publish --env << parameters.environment >>
- run:
name: slack announce
Expand Down
22 changes: 22 additions & 0 deletions .circleci/src/jobs/@web-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ web-build-staging:
build-directory: packages/web/build-staging
build-name: build-staging

web-build-ssr-staging:
working_directory: ~/audius-protocol
docker:
- image: cimg/node:18.17
resource_class: xlarge
steps:
- web-build:
build-type: ssr:stage
build-directory: packages/web/build-ssr-staging
build-name: build-ssr-staging

web-test-staging:
working_directory: ~/audius-protocol
resource_class: large
Expand Down Expand Up @@ -108,6 +119,17 @@ web-build-production:
build-directory: packages/web/build-production
build-name: build-production

web-build-ssr-production:
working_directory: ~/audius-protocol
docker:
- image: cimg/node:18.17
resource_class: xlarge
steps:
- web-build:
build-type: ssr:prod
build-directory: packages/web/build-ssr-production
build-name: build-ssr-production

web-deploy-demo:
working_directory: ~/audius-protocol
docker:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,6 @@ combined-patch-file.txt

# Identity
packages/identity-service/emailCache

# CloudFlare
.wrangler
Loading

0 comments on commit 7b53f91

Please sign in to comment.