From 26ffd2f15a9a93c7ac6265a5f7c62824e7f4d0de Mon Sep 17 00:00:00 2001 From: Sebastian Klingler Date: Tue, 6 Feb 2024 15:00:33 -0600 Subject: [PATCH] Fix SSR deploy cache (#7474) --- .circleci/src/jobs/@web-jobs.yml | 8 ++++---- packages/web/turbo.json | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.circleci/src/jobs/@web-jobs.yml b/.circleci/src/jobs/@web-jobs.yml index 417bb8828d8..606626ea28e 100644 --- a/.circleci/src/jobs/@web-jobs.yml +++ b/.circleci/src/jobs/@web-jobs.yml @@ -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 @@ -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 diff --git a/packages/web/turbo.json b/packages/web/turbo.json index 8d7515401c0..ac6d646032b 100644 --- a/packages/web/turbo.json +++ b/packages/web/turbo.json @@ -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"]