Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚠️ [INF-547] SSR Track Page #7213

Merged
merged 85 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
c183f59
Add vike
sliptype Nov 15, 2023
09a6f6c
Get basic ssr working
sliptype Nov 15, 2023
528ac4c
Bypass SSR by default
sliptype Nov 16, 2023
1dc0227
Get rendering working on worker
sliptype Nov 16, 2023
f09b03d
Resolve a unique page for profile
sliptype Nov 16, 2023
fd6b434
Merge branch 'main' into sk-inf-547-ssr
sliptype Nov 16, 2023
803d00e
Begin laying out ssr page
sliptype Nov 16, 2023
b74d3d0
Fetch track serverside
sliptype Nov 20, 2023
9c92c7b
Get basic track page rendering serverside
sliptype Nov 21, 2023
52812a8
Get full app rendering server side
sliptype Nov 27, 2023
a5ff151
Get full track page rendering server side
sliptype Nov 27, 2023
dc64371
Get hydration working
sliptype Nov 30, 2023
00a93ad
Merge branch 'main' into sk-inf-547-ssr-full-render-demo
sliptype Dec 8, 2023
6670196
Merge branch 'main' into sk-inf-547-ssr-full-render-demo
sliptype Dec 8, 2023
5c67961
Get worker working
sliptype Dec 8, 2023
7a9821e
Begin adding history context
sliptype Dec 1, 2023
614275d
Finish history context
sliptype Dec 8, 2023
9922dd7
Fix store singleton
sliptype Dec 8, 2023
06a7b57
Update cross-fetch and vike
sliptype Dec 12, 2023
be13a3a
Enable node_compat
sliptype Dec 12, 2023
3085388
Fix lottie ssr
sliptype Dec 13, 2023
c2b9842
Fix lottie render pt 2
sliptype Dec 13, 2023
5830f0a
Use vike v1 design
sliptype Dec 13, 2023
1229d69
Log better errors
sliptype Dec 13, 2023
066c7a8
Clean up vike v1 design usage
sliptype Dec 13, 2023
04fed69
Fix setImmediate error
sliptype Dec 14, 2023
78821ee
Simple ClientOnly
sliptype Dec 14, 2023
4e25469
Fix Popup ssr
sliptype Dec 14, 2023
f1d464a
Configure sdk ssr for different envs
sliptype Dec 14, 2023
f61f6cf
Fix search routing bugs
sliptype Dec 14, 2023
0b5dea7
Fix feed redirect
sliptype Dec 14, 2023
98447f5
Tweaks
sliptype Dec 19, 2023
b012854
Convert worker to module syntax
sliptype Jan 4, 2024
ecd14b9
Set up dual worker ssr
sliptype Jan 6, 2024
054e15a
Get parallel SPA/SSR builds working + dual worker
sliptype Jan 6, 2024
6793591
Gate SSR on crawlers
sliptype Jan 6, 2024
132a448
Allow forcing ssr via user agent
sliptype Jan 6, 2024
6732a50
Fix persist gate
sliptype Jan 8, 2024
269b6b5
Clean up get index.html
sliptype Jan 8, 2024
18cee30
Only force retrieve on initial ssr load
sliptype Jan 8, 2024
7584672
Add isMobile to SsrContext, update isMobile usages
sliptype Jan 9, 2024
c51490d
Get mobile ssr working
sliptype Jan 10, 2024
058d4d4
Update usages of getClient()
sliptype Jan 10, 2024
6e7480a
Update useIsMobile path
sliptype Jan 10, 2024
d85764a
Only dispatch reset of isInitialFetchAfterSsr when it is true
sliptype Jan 10, 2024
8d52569
Merge branch 'main' into sk-inf-547-ssr-dual-worker
sliptype Jan 10, 2024
2d688d0
Fix some bugs and errors
sliptype Jan 11, 2024
5fb066c
Fix typescript errors
sliptype Jan 11, 2024
9b6b9d3
SSR og and meta tags
sliptype Jan 11, 2024
0eff13a
Clean up wrangler.toml for ssr worker
sliptype Jan 11, 2024
adc8356
Fix track page loading
sliptype Jan 12, 2024
148b3d8
Update CI to build ssr bundle
sliptype Jan 12, 2024
ab883ff
Error page
sliptype Jan 12, 2024
7ad56db
Use main index.html for SSR
sliptype Jan 12, 2024
0dda513
Fix error on Trending and Feed pages
sliptype Jan 12, 2024
b5df880
Patch @react-spring/web
sliptype Jan 16, 2024
cef0038
Fix coverphoto error
sliptype Jan 16, 2024
c20ca1b
Remove root suspense to support SSR
sliptype Jan 16, 2024
7a9bfb0
Rename forceSSR -> forceSsr
sliptype Jan 16, 2024
7ca7895
Merge branch 'main' into sk-inf-547-ssr-dual-worker
sliptype Jan 16, 2024
ce9a0ed
Init remote config at root
sliptype Jan 16, 2024
40df077
Fix popover styling
sliptype Jan 17, 2024
5da4b0d
Disable SSR worker for now
sliptype Jan 17, 2024
b7a9f74
PR tweaks
sliptype Jan 17, 2024
ec31b32
Fix history issue
sliptype Jan 17, 2024
3c0fbe2
Merge branch 'main' into sk-inf-547-ssr-dual-worker
sliptype Jan 18, 2024
154ba83
Fix rollup package-lock
sliptype Jan 18, 2024
34fdf38
Address pr issues
sliptype Jan 19, 2024
af2a705
Merge branch 'main' into sk-inf-547-ssr-dual-worker
sliptype Jan 19, 2024
299aa9b
Patch vike to fix lint
sliptype Jan 19, 2024
d4f3424
Continue patch package if one fails
sliptype Jan 19, 2024
fd88e52
Attempt to fix patch-package
sliptype Jan 19, 2024
19f4056
Fix postinstall
sliptype Jan 20, 2024
5cdfb1e
Merge branch 'main' into sk-inf-547-ssr-dual-worker
sliptype Jan 22, 2024
eb47bed
Fix issues from merging main
sliptype Jan 22, 2024
5301c3d
Fix meta tags
sliptype Jan 22, 2024
336640d
Make rollup dev dep
sliptype Jan 22, 2024
e592551
Fix spa mobile
sliptype Jan 22, 2024
8171b67
Merge branch 'main' into sk-inf-547-ssr-dual-worker
sliptype Jan 23, 2024
ab9427b
Address pr comments
sliptype Jan 24, 2024
ef8ede4
Merge branch 'main' into sk-inf-547-ssr-dual-worker
sliptype Jan 24, 2024
0dbeb35
Fix stems lint
sliptype Jan 24, 2024
dc21ee2
Verify
sliptype Jan 24, 2024
11ca5f1
Fix buffer in AttestationLayout
sliptype Jan 24, 2024
1c66470
Merge branch 'main' into sk-inf-547-ssr-dual-worker
sliptype Jan 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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