Skip to content

Commit 9fc4123

Browse files
committed
chore: update revalidate test paths
1 parent 8f60f43 commit 9fc4123

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

demos/default/pages/api/revalidate.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ export default async function handler(req, res) {
44

55
const paths = [
66
'/getStaticProps/with-revalidate/', // valid path
7-
'/getStaticProps/with-revalidate', // missing trailing slash
8-
'getStaticProps/with-revalidate', // missing leading/trailing slash
9-
'/en/getStaticProps/with-revalidate/', // valid path (with locale)
107
'/fr/getStaticProps/with-revalidate/', // valid path (with locale)
118
'/', // valid path (index)
12-
'/en', // missing trailing slash (index)
139
'/fr/', // valid path (index with locale)
14-
'/nothing-here/', // 404
1510
'/getStaticProps/withRevalidate/2/', // valid path (with dynamic route)
1611
'/getStaticProps/withRevalidate/3/', // invalid path (fallback false with dynamic route)
1712
'/getStaticProps/withRevalidate/withFallbackBlocking/3/', // valid path (fallback blocking with dynamic route)
13+
'/fr/getStaticProps/withRevalidate/withFallbackBlocking/3/', // valid path (fallback blocking with dynamic route and locale)
1814
'/blog/nick/', // valid path (with appDir dynamic route)
1915
'/blog/greg/', // invalid path (with appDir dynamic route)
2016
'/blog/rob/hello/', // valid path (with appDir dynamic route)

0 commit comments

Comments
 (0)