Skip to content

Commit b0db9ee

Browse files
committed
Next js get static path add
1 parent 4806d95 commit b0db9ee

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

snippets/next-javascript.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,17 @@
2020
"};"
2121
],
2222
"description": "Next.js Get Static Props Typescript"
23-
}
23+
},
24+
"ngsp": {
25+
"prefix": "ngsp",
26+
"body": [
27+
"export const getStaticPaths = async () => {",
28+
" return {",
29+
" paths:[${1}],",
30+
" fallback:false",
31+
" }",
32+
"}"
33+
],
34+
"description": "Next JS Get Static Path Javascript"
35+
}
2436
}

0 commit comments

Comments
 (0)