Skip to content

Commit ab5b5bf

Browse files
committed
remove errors
1 parent 0b62599 commit ab5b5bf

File tree

7 files changed

+7
-11
lines changed

7 files changed

+7
-11
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"prepare": "pnpm run codegen",
77
"dev": "astro dev",
88
"start": "astro preview",
9-
"build": "CI=false astro build",
9+
"build": "CI=false astro check && astro build",
1010
"preview": "astro preview",
1111
"astro": "astro",
1212
"codegen": "panda codegen"
@@ -26,7 +26,7 @@
2626
"astro-remote": "^0.3.3",
2727
"bun-types": "^1.1.7",
2828
"caniuse-lite": "",
29-
"contentful": "^10.8.6",
29+
"contentful": "^10.15.2",
3030
"htmx.org": "^1.9.12",
3131
"typescript": "^5.4.2"
3232
},

pnpm-lock.yaml

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

src/components/ContentfulPostsList.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const contentfulEntries = await contentfulClient.getEntries<Post>({
1111
content_type: "post",
1212
});
1313
14-
export const contentfulPosts = contentfulEntries.items.map((item) => {
14+
export const contentfulPosts = contentfulEntries.items.map((item:any) => {
1515
const { title, slug, body, heroImage, publishDate } = item.fields;
1616
return {
1717
title,

src/components/ContentfulWorksList.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const contentfulEntries = await contentfulClient.getEntries<Work>({
88
content_type: "work",
99
});
1010
11-
export const contentfulPosts = contentfulEntries.items.map((item) => {
11+
export const contentfulPosts = contentfulEntries.items.map((item:any) => {
1212
const { title, slug, metaDescription, publishDate } = item.fields;
1313
return {
1414
title,

src/pages/blog/[slug].astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const entries = await contentfulClient.getEntries<Post>({
1010
content_type: "post",
1111
});
1212
13-
const pages = entries.items.map((item) => ({
13+
const pages = entries.items.map((item:any) => ({
1414
params: { slug: item.fields.slug },
1515
props: {
1616
title: item.fields.title,
@@ -21,7 +21,7 @@ const pages = entries.items.map((item) => ({
2121
2222
// Get current page data
2323
const { slug } = Astro.params;
24-
const page = pages.find((page) => page.params.slug === slug);
24+
const page = pages.find((page:any) => page.params.slug === slug);
2525
if (!page) return Astro.redirect("/404");
2626
2727
const { title, publishDate, body } = page.props;

src/pages/partials/posts.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import ContentfulPostsList from "../../components/ContentfulPostsList.astro";
33
import { POSTS_PER_PAGE_MAX, POSTS_PER_PAGE_MIN } from "../../consts";
44
5-
import { Debug } from "astro:components";
6-
75
const { pathname } = Astro.url;
86
const isBlogPath = pathname === "/blog";
97
export const partial = true;

src/pages/partials/works.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import ContentfulWorksList from "../../components/ContentfulWorksList.astro";
33
import { POSTS_PER_PAGE_MAX, POSTS_PER_PAGE_MIN } from "../../consts";
44
5-
import { Debug } from "astro:components";
6-
75
const { pathname } = Astro.url;
86
const isWorkPath = pathname === "/work";
97
export const partial = true;

0 commit comments

Comments
 (0)