Skip to content

Commit d3fd4c9

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

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

snippets/next-javascript.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
"description": "Next.js Get Static Props Typescript"
2323
},
2424
"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-
}
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+
}
3636
}

snippets/next-typescript.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,17 @@
6767
"export default ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}}"
6868
],
6969
"description": "Next.js Component Typescript"
70+
},
71+
"ngspt": {
72+
"prefix": "ngspt",
73+
"body": [
74+
"export const getStaticPaths: GetStaticPaths = async () => {",
75+
" return {",
76+
" paths:[${1}],",
77+
" fallback:false",
78+
" }",
79+
"}"
80+
],
81+
"description": "Next.js Get Static Path Typescript"
7082
}
7183
}

0 commit comments

Comments
 (0)