Skip to content

Commit 508a8ad

Browse files
author
Chris Henderson
committed
fix: add new /trace to HIDDEN_PATHS
The location of the `trace` file changed in vercel/next.js#28728.
1 parent 16e067d commit 508a8ad

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

Diff for: src/constants.ts

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const HIDDEN_PATHS = [
77
'/cache/*',
88
'/server/*',
99
'/serverless/*',
10+
'/trace',
1011
'/traces',
1112
'/routes-manifest.json',
1213
'/build-manifest.json',

Diff for: test/__snapshots__/index.js.snap

+24-18
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,12 @@ Array [
438438
"status": 404,
439439
"to": "/404.html",
440440
},
441+
Object {
442+
"force": true,
443+
"from": "/trace",
444+
"status": 404,
445+
"to": "/404.html",
446+
},
441447
Object {
442448
"force": true,
443449
"from": "/traces",
@@ -641,109 +647,109 @@ Array [
641647
},
642648
Object {
643649
"force": true,
644-
"from": "/_next/data/build-id/en/getStaticProps/with-revalidate.json",
650+
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/1.json",
645651
"status": 200,
646652
"to": "/.netlify/builders/___netlify-odb-handler",
647653
},
648654
Object {
649655
"force": true,
650-
"from": "/getStaticProps/with-revalidate",
656+
"from": "/getStaticProps/withRevalidate/1",
651657
"status": 200,
652658
"to": "/.netlify/builders/___netlify-odb-handler",
653659
},
654660
Object {
655661
"force": true,
656-
"from": "/_next/data/build-id/es/getStaticProps/with-revalidate.json",
662+
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/2.json",
657663
"status": 200,
658664
"to": "/.netlify/builders/___netlify-odb-handler",
659665
},
660666
Object {
661667
"force": true,
662-
"from": "/es/getStaticProps/with-revalidate",
668+
"from": "/getStaticProps/withRevalidate/2",
663669
"status": 200,
664670
"to": "/.netlify/builders/___netlify-odb-handler",
665671
},
666672
Object {
667673
"force": true,
668-
"from": "/_next/data/build-id/fr/getStaticProps/with-revalidate.json",
674+
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallback/1.json",
669675
"status": 200,
670676
"to": "/.netlify/builders/___netlify-odb-handler",
671677
},
672678
Object {
673679
"force": true,
674-
"from": "/fr/getStaticProps/with-revalidate",
680+
"from": "/getStaticProps/withRevalidate/withFallback/1",
675681
"status": 200,
676682
"to": "/.netlify/builders/___netlify-odb-handler",
677683
},
678684
Object {
679685
"force": true,
680-
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/1.json",
686+
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallback/2.json",
681687
"status": 200,
682688
"to": "/.netlify/builders/___netlify-odb-handler",
683689
},
684690
Object {
685691
"force": true,
686-
"from": "/getStaticProps/withRevalidate/1",
692+
"from": "/getStaticProps/withRevalidate/withFallback/2",
687693
"status": 200,
688694
"to": "/.netlify/builders/___netlify-odb-handler",
689695
},
690696
Object {
691697
"force": true,
692-
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/2.json",
698+
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallbackBlocking/1.json",
693699
"status": 200,
694700
"to": "/.netlify/builders/___netlify-odb-handler",
695701
},
696702
Object {
697703
"force": true,
698-
"from": "/getStaticProps/withRevalidate/2",
704+
"from": "/getStaticProps/withRevalidate/withFallbackBlocking/1",
699705
"status": 200,
700706
"to": "/.netlify/builders/___netlify-odb-handler",
701707
},
702708
Object {
703709
"force": true,
704-
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallback/1.json",
710+
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallbackBlocking/2.json",
705711
"status": 200,
706712
"to": "/.netlify/builders/___netlify-odb-handler",
707713
},
708714
Object {
709715
"force": true,
710-
"from": "/getStaticProps/withRevalidate/withFallback/1",
716+
"from": "/getStaticProps/withRevalidate/withFallbackBlocking/2",
711717
"status": 200,
712718
"to": "/.netlify/builders/___netlify-odb-handler",
713719
},
714720
Object {
715721
"force": true,
716-
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallback/2.json",
722+
"from": "/_next/data/build-id/en/getStaticProps/with-revalidate.json",
717723
"status": 200,
718724
"to": "/.netlify/builders/___netlify-odb-handler",
719725
},
720726
Object {
721727
"force": true,
722-
"from": "/getStaticProps/withRevalidate/withFallback/2",
728+
"from": "/getStaticProps/with-revalidate",
723729
"status": 200,
724730
"to": "/.netlify/builders/___netlify-odb-handler",
725731
},
726732
Object {
727733
"force": true,
728-
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallbackBlocking/1.json",
734+
"from": "/_next/data/build-id/es/getStaticProps/with-revalidate.json",
729735
"status": 200,
730736
"to": "/.netlify/builders/___netlify-odb-handler",
731737
},
732738
Object {
733739
"force": true,
734-
"from": "/getStaticProps/withRevalidate/withFallbackBlocking/1",
740+
"from": "/es/getStaticProps/with-revalidate",
735741
"status": 200,
736742
"to": "/.netlify/builders/___netlify-odb-handler",
737743
},
738744
Object {
739745
"force": true,
740-
"from": "/_next/data/build-id/en/getStaticProps/withRevalidate/withFallbackBlocking/2.json",
746+
"from": "/_next/data/build-id/fr/getStaticProps/with-revalidate.json",
741747
"status": 200,
742748
"to": "/.netlify/builders/___netlify-odb-handler",
743749
},
744750
Object {
745751
"force": true,
746-
"from": "/getStaticProps/withRevalidate/withFallbackBlocking/2",
752+
"from": "/fr/getStaticProps/with-revalidate",
747753
"status": 200,
748754
"to": "/.netlify/builders/___netlify-odb-handler",
749755
},

0 commit comments

Comments
 (0)