Skip to content

Commit

Permalink
Fix SSR deploy cache (#7474)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype authored Feb 6, 2024
1 parent ae4edfe commit 26ffd2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .circleci/src/jobs/@web-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ web-build-ssr-staging:
build-type: ssr:stage
build-directory: packages/web/build-ssr-staging
build-name: build-ssr-staging
# Need to persist vike auto importer so the CF worker finds the build
- persist_to_workspace:
root: ./
paths:
- node_modules
- packages/web/node_modules
- node_modules/@brillout/vite-plugin-import-build/dist

web-test-staging:
working_directory: ~/audius-protocol
Expand Down Expand Up @@ -135,11 +135,11 @@ web-build-ssr-production:
build-type: ssr:prod
build-directory: packages/web/build-ssr-production
build-name: build-ssr-production
# Need to persist vike auto importer so the CF worker finds the build
- persist_to_workspace:
root: ./
paths:
- node_modules
- packages/web/node_modules
- node_modules/@brillout/vite-plugin-import-build/dist

web-deploy-demo:
working_directory: ~/audius-protocol
Expand Down
6 changes: 5 additions & 1 deletion packages/web/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"extends": ["//"],
"pipeline": {
"build": {
"outputs": ["build/**", "build-ssr/**"],
"outputs": [
"build/**",
"build-ssr/**",
"../../node_modules/@brillout/vite-plugin-import-build/dist/autoImporter.js"
],
"dependsOn": ["^build"],
"outputMode": "new-only",
"env": ["VITE_ENVIRONMENT", "VITE_SSR"]
Expand Down

0 comments on commit 26ffd2f

Please sign in to comment.