Skip to content

Commit 35ecb04

Browse files
Create index.paths.js
1 parent cac9888 commit 35ecb04

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/index.paths.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import fs from 'fs'
2+
3+
export default {
4+
paths() {
5+
return fs
6+
.readdirSync('blog')
7+
.map((pkg) => {
8+
return { params: { pkg }}
9+
})
10+
}
11+
}

0 commit comments

Comments
 (0)