Skip to content

Commit f76f2cf

Browse files
committed
deleted sitemap
1 parent a203e1a commit f76f2cf

File tree

3 files changed

+0
-104
lines changed

3 files changed

+0
-104
lines changed

package-lock.json

Lines changed: 0 additions & 96 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"@material-ui/core": "^4.11.1",
1818
"@material-ui/icons": "^4.9.1",
1919
"@material-ui/lab": "^4.0.0-alpha.56",
20-
"async": "^3.2.1",
2120
"disqus-react": "^1.0.11",
2221
"next": "^11.1.0",
2322
"react": "^17.0.1",
@@ -31,7 +30,6 @@
3130
"@zeit/next-css": "^1.0.1",
3231
"babel-plugin-styled-components": "^1.12.0",
3332
"css-loader": "^5.0.1",
34-
"next-sitemap": "^1.6.148",
3533
"style-loader": "^2.0.0"
3634
}
3735
}

pages/articles/[id].js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import useSWR from 'swr'
22
import styled from 'styled-components'
33
import Head from 'next/head'
4-
import { series } from 'async'
5-
const { exec } = require('child_process')
64

75
import Markdown from '../../components/article/Markdown'
86
import Comments from '../../components/article/Comments'
@@ -21,10 +19,6 @@ export async function getStaticPaths() {
2119
export async function getStaticProps({ params }) {
2220
const article = await fetcher(`${process.env.NEXT_PUBLIC_HCMS_API_URL}/articles/${params.id}`)
2321

24-
series([
25-
() => exec('npm run postbuild')
26-
])
27-
2822
return {
2923
props: { params, article },
3024
revalidate: 10

0 commit comments

Comments
 (0)