/
next-javascript.json
58 lines (55 loc) 路 1.19 KB
/
next-javascript.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"nssr": {
"prefix": "nssr",
"body": [
"export const getServerSideProps = async context => {",
" return {",
" props: {},",
" };",
"};"
],
"description": "Next.js Get Server Side Props Typescript"
},
"nssg": {
"prefix": "nssg",
"body": [
"export const getStaticProps = async context => {",
" return {",
" props: {},",
" };",
"};"
],
"description": "Next.js Get Static Props Typescript"
},
"ncapp": {
"prefix": "ncapp",
"body": [
"const MyApp = ({ Component, pageProps }) => {",
" return <Component {...pageProps} />;",
"}",
"",
"export default MyApp;"
],
"description": "Next Custom App"
},
"ncdoc": {
"prefix": "ncdoc",
"body": [
"import { Html, Main, NextScript } from \"next/_document\";",
"",
"const Document = () => {",
" return (",
" <Html lang=\"en\">",
" <body>",
" <Main />",
" <NextScript />",
" </body>",
" </Html>",
" );",
"};",
"",
"export default Document;"
],
"description": "Next Custom Document"
}
}