Skip to content

Commit c23731e

Browse files
committed
fix : build시 발생하는 에러 해결
1 parent 1af72bb commit c23731e

File tree

8 files changed

+128
-2568
lines changed

8 files changed

+128
-2568
lines changed

.husky/husky-config/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

pages/[category].tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const Category = ({
2828

2929
export const getStaticPaths = async () => {
3030
const paths = navlinks.map(({ link }) => ({
31-
params: { category: link.slice(1) },
31+
params: { category: link && link.slice(1) },
3232
}));
3333
return {
3434
paths,
@@ -52,9 +52,9 @@ export const getStaticProps = async (
5252

5353
return {
5454
props: {
55-
posts: posts ?? null,
55+
posts: posts ?? [],
5656
structuredData,
57-
curDocs: curDocs ?? null,
57+
curDocs: curDocs ?? {},
5858
},
5959
};
6060
};

public/sitemap-0.xml

Lines changed: 120 additions & 0 deletions
Large diffs are not rendered by default.

public/sitemap.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<sitemap><loc>https://kagrin97-blog.vercel.app/sitemap-0.xml</loc></sitemap>
4+
</sitemapindex>

public/sw.js

Lines changed: 1 addition & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/sw.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)