From 28ddc5237a03d02d62097b2050055da89291b73b Mon Sep 17 00:00:00 2001 From: Saurabh Singh Date: Fri, 20 Dec 2024 23:04:29 +0530 Subject: [PATCH] fix: next.js cache issue (#1185) * fix: next.js cache issue * remove next cache from both file --- .github/workflows/build-preview.yml | 10 ---------- .github/workflows/production-deployment.yml | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index 481c85d24..52a77469b 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -35,16 +35,6 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - - name: Cache Next Build - uses: actions/cache@v4 - with: - path: | - ${{ steps.yarn-cache-dir-path.outputs.dir }} - ${{ github.workspace }}/.next/cache - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} - restore-keys: | - ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}- - - name: Setup Node.js uses: actions/setup-node@v4 with: diff --git a/.github/workflows/production-deployment.yml b/.github/workflows/production-deployment.yml index feb48ac94..5480e59a0 100644 --- a/.github/workflows/production-deployment.yml +++ b/.github/workflows/production-deployment.yml @@ -26,16 +26,6 @@ jobs: id: yarn-cache-dir-path run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT - - name: Cache Next Build - uses: actions/cache@v4 - with: - path: | - ${{ steps.yarn-cache-dir-path.outputs.dir }} - ${{ github.workspace }}/.next/cache - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} - restore-keys: | - ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}- - - name: Setup Node.js uses: actions/setup-node@v4 with: