Skip to content

Commit

Permalink
fix : build시 발생하는 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
kagrin97 committed Apr 25, 2023
1 parent 1af72bb commit c23731e
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 2,568 deletions.
4 changes: 0 additions & 4 deletions .husky/husky-config/pre-commit

This file was deleted.

6 changes: 3 additions & 3 deletions pages/[category].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Category = ({

export const getStaticPaths = async () => {
const paths = navlinks.map(({ link }) => ({
params: { category: link.slice(1) },
params: { category: link && link.slice(1) },
}));
return {
paths,
Expand All @@ -52,9 +52,9 @@ export const getStaticProps = async (

return {
props: {
posts: posts ?? null,
posts: posts ?? [],
structuredData,
curDocs: curDocs ?? null,
curDocs: curDocs ?? {},
},
};
};
Expand Down
120 changes: 120 additions & 0 deletions public/sitemap-0.xml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://kagrin97-blog.vercel.app/sitemap-0.xml</loc></sitemap>
</sitemapindex>
102 changes: 1 addition & 101 deletions public/sw.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/sw.js.map

This file was deleted.

Loading

1 comment on commit c23731e

@vercel
Copy link

@vercel vercel bot commented on c23731e Apr 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-js-myblog – ./

next-js-myblog-kagrin97.vercel.app
kagrin97-blog.vercel.app
next-js-myblog-git-main-kagrin97.vercel.app

Please sign in to comment.