From 508a8adb10dfecf9d479980f33c4de5cf92bb7aa Mon Sep 17 00:00:00 2001 From: Chris Henderson Date: Wed, 9 Mar 2022 21:50:15 -0800 Subject: [PATCH] fix: add new /trace to HIDDEN_PATHS The location of the `trace` file changed in https://github.com/vercel/next.js/pull/28728. --- src/constants.ts | 1 + test/__snapshots__/index.js.snap | 42 ++++++++++++++++++-------------- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 48523a2b86..179ae16302 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -7,6 +7,7 @@ export const HIDDEN_PATHS = [ '/cache/*', '/server/*', '/serverless/*', + '/trace', '/traces', '/routes-manifest.json', '/build-manifest.json', diff --git a/test/__snapshots__/index.js.snap b/test/__snapshots__/index.js.snap index e0f7b4c0a8..f3881fb86d 100644 --- a/test/__snapshots__/index.js.snap +++ b/test/__snapshots__/index.js.snap @@ -438,6 +438,12 @@ Array [ "status": 404, "to": "/404.html", }, + Object { + "force": true, + "from": "/trace", + "status": 404, + "to": "/404.html", + }, Object { "force": true, "from": "/traces", @@ -641,109 +647,109 @@ Array [ }, Object { "force": true, - "from": "/_next/data/build-id/en/getStaticProps/with-revalidate.json", + "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/1.json", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/getStaticProps/with-revalidate", + "from": "/getStaticProps/withRevalidate/1", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/_next/data/build-id/es/getStaticProps/with-revalidate.json", + "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/2.json", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/es/getStaticProps/with-revalidate", + "from": "/getStaticProps/withRevalidate/2", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/_next/data/build-id/fr/getStaticProps/with-revalidate.json", + "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallback/1.json", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/fr/getStaticProps/with-revalidate", + "from": "/getStaticProps/withRevalidate/withFallback/1", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/1.json", + "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallback/2.json", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/getStaticProps/withRevalidate/1", + "from": "/getStaticProps/withRevalidate/withFallback/2", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/2.json", + "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallbackBlocking/1.json", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/getStaticProps/withRevalidate/2", + "from": "/getStaticProps/withRevalidate/withFallbackBlocking/1", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallback/1.json", + "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallbackBlocking/2.json", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/getStaticProps/withRevalidate/withFallback/1", + "from": "/getStaticProps/withRevalidate/withFallbackBlocking/2", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallback/2.json", + "from": "/_next/data/build-id/en/getStaticProps/with-revalidate.json", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/getStaticProps/withRevalidate/withFallback/2", + "from": "/getStaticProps/with-revalidate", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallbackBlocking/1.json", + "from": "/_next/data/build-id/es/getStaticProps/with-revalidate.json", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/getStaticProps/withRevalidate/withFallbackBlocking/1", + "from": "/es/getStaticProps/with-revalidate", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallbackBlocking/2.json", + "from": "/_next/data/build-id/fr/getStaticProps/with-revalidate.json", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", }, Object { "force": true, - "from": "/getStaticProps/withRevalidate/withFallbackBlocking/2", + "from": "/fr/getStaticProps/with-revalidate", "status": 200, "to": "/.netlify/builders/___netlify-odb-handler", },