Skip to content

Commit 8f60f43

Browse files
committed
fix: revalidate api endpoint path order
1 parent 6aa81df commit 8f60f43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demos/default/pages/api/revalidate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ export default async function handler(req, res) {
33
const select = Number(query.select) || 0
44

55
const paths = [
6-
'getStaticProps/with-revalidate', // missing leading/trailing slash
7-
'/getStaticProps/with-revalidate', // missing trailing slash
86
'/getStaticProps/with-revalidate/', // valid path
7+
'/getStaticProps/with-revalidate', // missing trailing slash
8+
'getStaticProps/with-revalidate', // missing leading/trailing slash
99
'/en/getStaticProps/with-revalidate/', // valid path (with locale)
1010
'/fr/getStaticProps/with-revalidate/', // valid path (with locale)
1111
'/', // valid path (index)

0 commit comments

Comments
 (0)