Skip to content

Commit 100c6ea

Browse files
authored
docs: Added snippet docs for Get Static Path Next.js
1 parent ef359ec commit 100c6ea

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,17 @@ NextJS and React Snippets with TypeScript support as well!🚀
138138
139139
export default Document;
140140
```
141+
142+
5. `ngsp` (Next.js Get Static Path Javascript)
143+
144+
```jsx
145+
export const getStaticPaths = async () => {
146+
return {
147+
paths:[${1}],
148+
fallback:false
149+
};
150+
};
151+
141152
142153
### TypeScript
143154
@@ -214,3 +225,14 @@ NextJS and React Snippets with TypeScript support as well!🚀
214225

215226
export default Document;
216227
```
228+
229+
8. `ngspt` (Next.js Get Static Path Typescript)
230+
231+
```tsx
232+
export const getStaticPaths: GetStaticPaths = async () => {
233+
return {
234+
paths:[${1}],
235+
fallback:false
236+
};
237+
}
238+
```

0 commit comments

Comments
 (0)