diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 96bce88839..6d623e751e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -41,84 +41,84 @@ jobs: echo "matrix=[\"latest\"]" >> $GITHUB_OUTPUT fi - e2e: - needs: setup - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - version: ${{ fromJson(needs.setup.outputs.matrix) }} - shard: [1, 2, 3, 4, 5] + # e2e: + # needs: setup + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # version: ${{ fromJson(needs.setup.outputs.matrix) }} + # shard: [1, 2, 3, 4, 5] - steps: - - uses: actions/checkout@v4 - - name: 'Install Node' - uses: actions/setup-node@v4 - with: - node-version: '18.x' - cache: 'npm' - cache-dependency-path: '**/package-lock.json' - - uses: oven-sh/setup-bun@v2 - - name: setup pnpm/yarn - run: | - npm install -g corepack - corepack enable - shell: bash - - name: Install Deno - uses: denoland/setup-deno@v1 - with: - # Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20 - deno-version: v1.46.3 - - name: 'Install dependencies' - run: npm ci - - name: 'Prepare Netlify CLI' - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - run: | - # Control netlify-cli as a regular dev dep but expose it globally for test fixtures to use - npm install -g "netlify-cli@$(npm list --json --depth=0 netlify-cli | jq -r ".dependencies[\"netlify-cli\"].version")" - npx netlify login - - name: Get installed Playwright version - id: playwright-version - run: echo "version=$(npm view @playwright/test version)" >> $GITHUB_OUTPUT - - uses: actions/cache@v4 - id: playwright-cache - with: - path: '~/.cache/ms-playwright' - key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}' - restore-keys: | - ${{ runner.os }}-playwright- - - name: Install Playwright Browsers - if: steps.playwright-cache.outputs.cache-hit != 'true' - run: npx playwright install --with-deps - - name: Resolve Next.js version - id: resolve-next-version - shell: bash - run: | - RESOLVED_VERSION=$(npm view next@${{ matrix.version }} version) - echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT - echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'" - - name: Run Playwright tests - run: npm run test:ci:e2e -- --shard=${{ matrix.shard }}/5 - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NEXT_VERSION: ${{ matrix.version }} - NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }} - - name: Upload blob report to GitHub Actions Artifacts - uses: actions/upload-artifact@v4 - if: always() - with: - name: blob-report-${{matrix.version}}-${{ matrix.shard }} - path: blob-report - retention-days: 1 + # steps: + # - uses: actions/checkout@v4 + # - name: 'Install Node' + # uses: actions/setup-node@v4 + # with: + # node-version: '18.x' + # cache: 'npm' + # cache-dependency-path: '**/package-lock.json' + # - uses: oven-sh/setup-bun@v2 + # - name: setup pnpm/yarn + # run: | + # npm install -g corepack + # corepack enable + # shell: bash + # - name: Install Deno + # uses: denoland/setup-deno@v1 + # with: + # # Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20 + # deno-version: v1.46.3 + # - name: 'Install dependencies' + # run: npm ci + # - name: 'Prepare Netlify CLI' + # env: + # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + # run: | + # # Control netlify-cli as a regular dev dep but expose it globally for test fixtures to use + # npm install -g "netlify-cli@$(npm list --json --depth=0 netlify-cli | jq -r ".dependencies[\"netlify-cli\"].version")" + # npx netlify login + # - name: Get installed Playwright version + # id: playwright-version + # run: echo "version=$(npm view @playwright/test version)" >> $GITHUB_OUTPUT + # - uses: actions/cache@v4 + # id: playwright-cache + # with: + # path: '~/.cache/ms-playwright' + # key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}' + # restore-keys: | + # ${{ runner.os }}-playwright- + # - name: Install Playwright Browsers + # if: steps.playwright-cache.outputs.cache-hit != 'true' + # run: npx playwright install --with-deps + # - name: Resolve Next.js version + # id: resolve-next-version + # shell: bash + # run: | + # RESOLVED_VERSION=$(npm view next@${{ matrix.version }} version) + # echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT + # echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'" + # - name: Run Playwright tests + # run: npm run test:ci:e2e -- --shard=${{ matrix.shard }}/5 + # env: + # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + # NEXT_VERSION: ${{ matrix.version }} + # NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }} + # - name: Upload blob report to GitHub Actions Artifacts + # uses: actions/upload-artifact@v4 + # if: always() + # with: + # name: blob-report-${{matrix.version}}-${{ matrix.shard }} + # path: blob-report + # retention-days: 1 test: needs: setup strategy: fail-fast: false matrix: - shard: [1, 2, 3, 4, 5, 6, 7, 8] - os: [ubuntu-latest, windows-2025] + shard: [2] + os: [ubuntu-latest] version: ${{ fromJson(needs.setup.outputs.matrix) }} exclude: - os: windows-2025 @@ -128,6 +128,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + detached: true + limit-access-to-actor: true - name: 'Install Node' uses: actions/setup-node@v4 with: @@ -195,87 +200,87 @@ jobs: NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }} TEMP: ${{ github.workspace }}/.. - smoke: - if: always() - needs: setup - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - version: ${{ fromJson(needs.setup.outputs.matrix) }} - steps: - - uses: actions/checkout@v4 - - name: 'Install Node' - uses: actions/setup-node@v4 - with: - node-version: '18.x' - cache: 'npm' - cache-dependency-path: '**/package-lock.json' - - name: setup pnpm/yarn - run: corepack enable - shell: bash - - name: Install Deno - uses: denoland/setup-deno@v1 - with: - # Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20 - deno-version: v1.46.3 - - name: 'Install dependencies' - run: npm ci - - name: 'Build' - run: npm run build - - name: 'Prepare Netlify CLI' - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - run: | - # Control netlify-cli as a regular dev dep but expose it globally for test fixtures to use - npm install -g "netlify-cli@$(npm list --json --depth=0 netlify-cli | jq -r ".dependencies[\"netlify-cli\"].version")" - npx netlify login - - name: Resolve Next.js version - id: resolve-next-version - shell: bash - run: | - RESOLVED_VERSION=$(npm view next@${{ matrix.version }} version) - echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT - echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'" - - name: 'Smoke tests' - run: npm run test:ci:smoke - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NEXT_VERSION: ${{ matrix.version }} - NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }} + # smoke: + # if: always() + # needs: setup + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # version: ${{ fromJson(needs.setup.outputs.matrix) }} + # steps: + # - uses: actions/checkout@v4 + # - name: 'Install Node' + # uses: actions/setup-node@v4 + # with: + # node-version: '18.x' + # cache: 'npm' + # cache-dependency-path: '**/package-lock.json' + # - name: setup pnpm/yarn + # run: corepack enable + # shell: bash + # - name: Install Deno + # uses: denoland/setup-deno@v1 + # with: + # # Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20 + # deno-version: v1.46.3 + # - name: 'Install dependencies' + # run: npm ci + # - name: 'Build' + # run: npm run build + # - name: 'Prepare Netlify CLI' + # env: + # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + # run: | + # # Control netlify-cli as a regular dev dep but expose it globally for test fixtures to use + # npm install -g "netlify-cli@$(npm list --json --depth=0 netlify-cli | jq -r ".dependencies[\"netlify-cli\"].version")" + # npx netlify login + # - name: Resolve Next.js version + # id: resolve-next-version + # shell: bash + # run: | + # RESOLVED_VERSION=$(npm view next@${{ matrix.version }} version) + # echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT + # echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'" + # - name: 'Smoke tests' + # run: npm run test:ci:smoke + # env: + # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + # NEXT_VERSION: ${{ matrix.version }} + # NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }} - merge-reports: - if: always() - needs: [setup,e2e] - strategy: - fail-fast: false - matrix: - version: ${{ fromJson(needs.setup.outputs.matrix) }} + # merge-reports: + # if: always() + # needs: [setup,e2e] + # strategy: + # fail-fast: false + # matrix: + # version: ${{ fromJson(needs.setup.outputs.matrix) }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 18 - - name: Install dependencies - run: npm ci + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-node@v4 + # with: + # node-version: 18 + # - name: Install dependencies + # run: npm ci - - name: Download blob reports from GitHub Actions Artifacts - uses: actions/download-artifact@v4 - with: - path: all-blob-reports - pattern: blob-report-${{ matrix.version }}-* - merge-multiple: true + # - name: Download blob reports from GitHub Actions Artifacts + # uses: actions/download-artifact@v4 + # with: + # path: all-blob-reports + # pattern: blob-report-${{ matrix.version }}-* + # merge-multiple: true - - name: Merge reports - run: | - npx playwright merge-reports --reporter html ./all-blob-reports - npx playwright merge-reports --reporter json ./all-blob-reports > merged_reports.json + # - name: Merge reports + # run: | + # npx playwright merge-reports --reporter html ./all-blob-reports + # npx playwright merge-reports --reporter json ./all-blob-reports > merged_reports.json - - name: Upload HTML report - uses: actions/upload-artifact@v4 - with: - name: html-report-${{ matrix.version }}-attempt-${{ github.run_attempt }} - path: playwright-report - retention-days: 14 + # - name: Upload HTML report + # uses: actions/upload-artifact@v4 + # with: + # name: html-report-${{ matrix.version }}-attempt-${{ github.run_attempt }} + # path: playwright-report + # retention-days: 14 diff --git a/tests/fixtures/advanced-api-routes/next.config.js b/tests/fixtures/advanced-api-routes/next.config.js index 6346ab0742..1cffc90abc 100644 --- a/tests/fixtures/advanced-api-routes/next.config.js +++ b/tests/fixtures/advanced-api-routes/next.config.js @@ -5,6 +5,8 @@ const nextConfig = { ignoreDuringBuilds: true, }, generateBuildId: () => 'build-id', + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/after/next.config.js b/tests/fixtures/after/next.config.js index 9d94510be1..01efc16240 100644 --- a/tests/fixtures/after/next.config.js +++ b/tests/fixtures/after/next.config.js @@ -4,6 +4,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/base-path/next.config.js b/tests/fixtures/base-path/next.config.js index 42ff9ba9cd..2476ba0438 100644 --- a/tests/fixtures/base-path/next.config.js +++ b/tests/fixtures/base-path/next.config.js @@ -5,6 +5,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/cli-before-regional-blobs-support/next.config.js b/tests/fixtures/cli-before-regional-blobs-support/next.config.js index 8d2a9bf37a..6c6a786a70 100644 --- a/tests/fixtures/cli-before-regional-blobs-support/next.config.js +++ b/tests/fixtures/cli-before-regional-blobs-support/next.config.js @@ -3,6 +3,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/dist-dir/next.config.js b/tests/fixtures/dist-dir/next.config.js index 442fb0e856..f1531bee60 100644 --- a/tests/fixtures/dist-dir/next.config.js +++ b/tests/fixtures/dist-dir/next.config.js @@ -5,6 +5,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/dynamic-cms/next.config.js b/tests/fixtures/dynamic-cms/next.config.js index fb5bd7c039..0b32ede42e 100644 --- a/tests/fixtures/dynamic-cms/next.config.js +++ b/tests/fixtures/dynamic-cms/next.config.js @@ -9,6 +9,8 @@ const nextConfig = { defaultLocale: 'en', }, generateBuildId: () => 'build-id', + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/hello-world-turbopack/next.config.ts b/tests/fixtures/hello-world-turbopack/next.config.ts index 9d94510be1..edd053bb78 100644 --- a/tests/fixtures/hello-world-turbopack/next.config.ts +++ b/tests/fixtures/hello-world-turbopack/next.config.ts @@ -4,6 +4,11 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, + turbopack: { + root: __dirname, + }, } module.exports = nextConfig diff --git a/tests/fixtures/middleware-conditions/next.config.js b/tests/fixtures/middleware-conditions/next.config.js index fc0f865b4f..faebdf975a 100644 --- a/tests/fixtures/middleware-conditions/next.config.js +++ b/tests/fixtures/middleware-conditions/next.config.js @@ -8,6 +8,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/middleware-i18n-excluded-paths/next.config.js b/tests/fixtures/middleware-i18n-excluded-paths/next.config.js index a96ce45ff6..79bfe6fabb 100644 --- a/tests/fixtures/middleware-i18n-excluded-paths/next.config.js +++ b/tests/fixtures/middleware-i18n-excluded-paths/next.config.js @@ -7,4 +7,6 @@ module.exports = { locales: ['en', 'fr'], defaultLocale: 'en', }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } diff --git a/tests/fixtures/middleware-i18n-skip-normalize/next.config.js b/tests/fixtures/middleware-i18n-skip-normalize/next.config.js index eadf9cf8fb..c09234d7e2 100644 --- a/tests/fixtures/middleware-i18n-skip-normalize/next.config.js +++ b/tests/fixtures/middleware-i18n-skip-normalize/next.config.js @@ -21,4 +21,6 @@ module.exports = { }, ] }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } diff --git a/tests/fixtures/middleware-i18n/next.config.js b/tests/fixtures/middleware-i18n/next.config.js index 60fd4e6a58..18ed59937f 100644 --- a/tests/fixtures/middleware-i18n/next.config.js +++ b/tests/fixtures/middleware-i18n/next.config.js @@ -20,4 +20,6 @@ module.exports = { }, ] }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } diff --git a/tests/fixtures/middleware-og/next.config.js b/tests/fixtures/middleware-og/next.config.js index 9d94510be1..01efc16240 100644 --- a/tests/fixtures/middleware-og/next.config.js +++ b/tests/fixtures/middleware-og/next.config.js @@ -4,6 +4,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/middleware-pages/next.config.js b/tests/fixtures/middleware-pages/next.config.js index c69795688a..40c8d9a93f 100644 --- a/tests/fixtures/middleware-pages/next.config.js +++ b/tests/fixtures/middleware-pages/next.config.js @@ -58,4 +58,6 @@ module.exports = { }, ] }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } diff --git a/tests/fixtures/middleware-src/next.config.js b/tests/fixtures/middleware-src/next.config.js index 9d94510be1..01efc16240 100644 --- a/tests/fixtures/middleware-src/next.config.js +++ b/tests/fixtures/middleware-src/next.config.js @@ -4,6 +4,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/middleware-static-asset-matcher/next.config.js b/tests/fixtures/middleware-static-asset-matcher/next.config.js index 9d94510be1..01efc16240 100644 --- a/tests/fixtures/middleware-static-asset-matcher/next.config.js +++ b/tests/fixtures/middleware-static-asset-matcher/next.config.js @@ -4,6 +4,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/middleware-subrequest-vuln/next.config.js b/tests/fixtures/middleware-subrequest-vuln/next.config.js index 9d94510be1..01efc16240 100644 --- a/tests/fixtures/middleware-subrequest-vuln/next.config.js +++ b/tests/fixtures/middleware-subrequest-vuln/next.config.js @@ -4,6 +4,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/middleware-trailing-slash/next.config.js b/tests/fixtures/middleware-trailing-slash/next.config.js index c3b7cdeee6..2a92a3e722 100644 --- a/tests/fixtures/middleware-trailing-slash/next.config.js +++ b/tests/fixtures/middleware-trailing-slash/next.config.js @@ -5,6 +5,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/middleware/next.config.js b/tests/fixtures/middleware/next.config.js index 28875fd694..62647929ef 100644 --- a/tests/fixtures/middleware/next.config.js +++ b/tests/fixtures/middleware/next.config.js @@ -11,6 +11,8 @@ const nextConfig = { return config }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/netlify-forms-workaround/next.config.js b/tests/fixtures/netlify-forms-workaround/next.config.js index 6346ab0742..1cffc90abc 100644 --- a/tests/fixtures/netlify-forms-workaround/next.config.js +++ b/tests/fixtures/netlify-forms-workaround/next.config.js @@ -5,6 +5,8 @@ const nextConfig = { ignoreDuringBuilds: true, }, generateBuildId: () => 'build-id', + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/netlify-forms/next.config.js b/tests/fixtures/netlify-forms/next.config.js index 6346ab0742..1cffc90abc 100644 --- a/tests/fixtures/netlify-forms/next.config.js +++ b/tests/fixtures/netlify-forms/next.config.js @@ -5,6 +5,8 @@ const nextConfig = { ignoreDuringBuilds: true, }, generateBuildId: () => 'build-id', + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/nx-integrated/apps/custom-dist-dir/next.config.js b/tests/fixtures/nx-integrated/apps/custom-dist-dir/next.config.js index 29528bd755..fdd7590cf0 100644 --- a/tests/fixtures/nx-integrated/apps/custom-dist-dir/next.config.js +++ b/tests/fixtures/nx-integrated/apps/custom-dist-dir/next.config.js @@ -1,3 +1,4 @@ +const { join } = require('path') const { composePlugins, withNx } = require('@nx/next') /** @@ -10,6 +11,8 @@ const nextConfig = { // See: https://github.com/gregberge/svgr svgr: false, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: join(__dirname, '..', '...'), } const plugins = [ diff --git a/tests/fixtures/nx-integrated/apps/next-app/next.config.js b/tests/fixtures/nx-integrated/apps/next-app/next.config.js index 63d2f7829f..21eb54167d 100644 --- a/tests/fixtures/nx-integrated/apps/next-app/next.config.js +++ b/tests/fixtures/nx-integrated/apps/next-app/next.config.js @@ -1,3 +1,4 @@ +const { join } = require('path') const { composePlugins, withNx } = require('@nx/next') /** @@ -9,6 +10,8 @@ const nextConfig = { // See: https://github.com/gregberge/svgr svgr: false, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: join(__dirname, '..', '...'), } const plugins = [ diff --git a/tests/fixtures/output-export-custom-dist/next.config.js b/tests/fixtures/output-export-custom-dist/next.config.js index 84a4fdcbcd..ce9afbbe2d 100644 --- a/tests/fixtures/output-export-custom-dist/next.config.js +++ b/tests/fixtures/output-export-custom-dist/next.config.js @@ -5,6 +5,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/output-export/next.config.js b/tests/fixtures/output-export/next.config.js index 8d163c1740..668981bcef 100644 --- a/tests/fixtures/output-export/next.config.js +++ b/tests/fixtures/output-export/next.config.js @@ -4,6 +4,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/page-router-base-path-i18n/next.config.js b/tests/fixtures/page-router-base-path-i18n/next.config.js index d84875a432..996cead6d7 100644 --- a/tests/fixtures/page-router-base-path-i18n/next.config.js +++ b/tests/fixtures/page-router-base-path-i18n/next.config.js @@ -10,6 +10,8 @@ const nextConfig = { locales: ['en', 'fr', 'de'], defaultLocale: 'en', }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/page-router/next.config.js b/tests/fixtures/page-router/next.config.js index 6346ab0742..1cffc90abc 100644 --- a/tests/fixtures/page-router/next.config.js +++ b/tests/fixtures/page-router/next.config.js @@ -5,6 +5,8 @@ const nextConfig = { ignoreDuringBuilds: true, }, generateBuildId: () => 'build-id', + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/pnpm/next.config.js b/tests/fixtures/pnpm/next.config.js index 4790a6ee9b..31f12e4492 100644 --- a/tests/fixtures/pnpm/next.config.js +++ b/tests/fixtures/pnpm/next.config.js @@ -5,6 +5,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/ppr/next.config.js b/tests/fixtures/ppr/next.config.js index 12f86b6750..9b03d1243c 100644 --- a/tests/fixtures/ppr/next.config.js +++ b/tests/fixtures/ppr/next.config.js @@ -7,6 +7,8 @@ const nextConfig = { experimental: { ppr: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/revalidate-fetch/next.config.js b/tests/fixtures/revalidate-fetch/next.config.js index 9d94510be1..01efc16240 100644 --- a/tests/fixtures/revalidate-fetch/next.config.js +++ b/tests/fixtures/revalidate-fetch/next.config.js @@ -4,6 +4,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/server-components/next.config.js b/tests/fixtures/server-components/next.config.js index 9d94510be1..01efc16240 100644 --- a/tests/fixtures/server-components/next.config.js +++ b/tests/fixtures/server-components/next.config.js @@ -4,6 +4,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/simple/next.config.js b/tests/fixtures/simple/next.config.js index 8c408d8120..13103c1ab0 100644 --- a/tests/fixtures/simple/next.config.js +++ b/tests/fixtures/simple/next.config.js @@ -44,6 +44,8 @@ const nextConfig = { }, ] }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/turborepo-npm/apps/docs/next.config.js b/tests/fixtures/turborepo-npm/apps/docs/next.config.js index 844bc7c97f..7bca1daf60 100644 --- a/tests/fixtures/turborepo-npm/apps/docs/next.config.js +++ b/tests/fixtures/turborepo-npm/apps/docs/next.config.js @@ -1,4 +1,8 @@ +const { join } = require('path') + /** @type {import('next').NextConfig} */ module.exports = { transpilePackages: ['@repo/ui'], + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: join(__dirname, '..', '...'), } diff --git a/tests/fixtures/turborepo-npm/apps/page-router/next.config.js b/tests/fixtures/turborepo-npm/apps/page-router/next.config.js index 1a42f79027..de0b9dc994 100644 --- a/tests/fixtures/turborepo-npm/apps/page-router/next.config.js +++ b/tests/fixtures/turborepo-npm/apps/page-router/next.config.js @@ -1,3 +1,5 @@ +const { join } = require('path') + /** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', @@ -5,6 +7,8 @@ const nextConfig = { ignoreDuringBuilds: true, }, transpilePackages: ['@repo/ui'], + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: join(__dirname, '..', '...'), } module.exports = nextConfig diff --git a/tests/fixtures/turborepo-npm/apps/web/next.config.js b/tests/fixtures/turborepo-npm/apps/web/next.config.js index 844bc7c97f..7bca1daf60 100644 --- a/tests/fixtures/turborepo-npm/apps/web/next.config.js +++ b/tests/fixtures/turborepo-npm/apps/web/next.config.js @@ -1,4 +1,8 @@ +const { join } = require('path') + /** @type {import('next').NextConfig} */ module.exports = { transpilePackages: ['@repo/ui'], + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: join(__dirname, '..', '...'), } diff --git a/tests/fixtures/turborepo/apps/docs/next.config.js b/tests/fixtures/turborepo/apps/docs/next.config.js index dd483de9f7..8d2053fdba 100644 --- a/tests/fixtures/turborepo/apps/docs/next.config.js +++ b/tests/fixtures/turborepo/apps/docs/next.config.js @@ -1,7 +1,11 @@ +const { join } = require('path') + /** @type {import('next').NextConfig} */ module.exports = { eslint: { ignoreDuringBuilds: true, }, transpilePackages: ['@repo/ui'], + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: join(__dirname, '..', '...'), } diff --git a/tests/fixtures/turborepo/apps/page-router/next.config.js b/tests/fixtures/turborepo/apps/page-router/next.config.js index 1a42f79027..de0b9dc994 100644 --- a/tests/fixtures/turborepo/apps/page-router/next.config.js +++ b/tests/fixtures/turborepo/apps/page-router/next.config.js @@ -1,3 +1,5 @@ +const { join } = require('path') + /** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', @@ -5,6 +7,8 @@ const nextConfig = { ignoreDuringBuilds: true, }, transpilePackages: ['@repo/ui'], + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: join(__dirname, '..', '...'), } module.exports = nextConfig diff --git a/tests/fixtures/turborepo/apps/web/next.config.js b/tests/fixtures/turborepo/apps/web/next.config.js index cace902ddf..607f8357c4 100644 --- a/tests/fixtures/turborepo/apps/web/next.config.js +++ b/tests/fixtures/turborepo/apps/web/next.config.js @@ -1,3 +1,5 @@ +const { join } = require('path') + /** @type {import('next').NextConfig} */ module.exports = { output: 'standalone', @@ -5,4 +7,6 @@ module.exports = { ignoreDuringBuilds: true, }, transpilePackages: ['@repo/ui'], + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: join(__dirname, '..', '...'), } diff --git a/tests/fixtures/use-cache/next.config.js b/tests/fixtures/use-cache/next.config.js index 2dfab2319a..d26ab52d67 100644 --- a/tests/fixtures/use-cache/next.config.js +++ b/tests/fixtures/use-cache/next.config.js @@ -30,6 +30,8 @@ const nextConfig = { }, }, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } module.exports = nextConfig diff --git a/tests/fixtures/wasm-src/next.config.js b/tests/fixtures/wasm-src/next.config.js index f7630c0194..5ca21a40a3 100644 --- a/tests/fixtures/wasm-src/next.config.js +++ b/tests/fixtures/wasm-src/next.config.js @@ -27,4 +27,6 @@ module.exports = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, } diff --git a/tests/fixtures/wasm/next.config.js b/tests/fixtures/wasm/next.config.js index f7630c0194..5ca21a40a3 100644 --- a/tests/fixtures/wasm/next.config.js +++ b/tests/fixtures/wasm/next.config.js @@ -27,4 +27,6 @@ module.exports = { eslint: { ignoreDuringBuilds: true, }, + // https://github.com/vercel/next.js/issues/81864 + outputFileTracingRoot: __dirname, }