Skip to content

Commit

Permalink
fix: merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed Mar 3, 2024
2 parents 7b96bef + c0142ad commit e25ecac
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 200 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
.next
build
.contentlayer
pnpm-lock.yaml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Skateshop](https://skateshop.sadmn.com/)

This is an open source e-commerce skateshop build with everything new in Next.js 13. It is bootstrapped with `create-t3-app`.
This is an open source e-commerce skateshop build with everything new in Next.js 14. It is bootstrapped with `create-t3-app`.

[![Skateshop](./public/images/screenshot.png)](https://skateshop.sadmn.com/)

Expand Down
5 changes: 2 additions & 3 deletions contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import rehypeAutolinkHeadings from "rehype-autolink-headings"
import rehypeCodeTitles from "rehype-code-titles"
import rehypePrettyCode from "rehype-pretty-code"
import rehypeSlug from "rehype-slug"
import remarkGfm from "remark-gfm"

const computedFields: ComputedFields = {
slug: {
Expand Down Expand Up @@ -111,6 +112,7 @@ export default makeSource({
contentDirPath: "./src/content",
documentTypes: [Post, Author, Page],
mdx: {
remarkPlugins: [remarkGfm],
rehypePlugins: [
[
// @ts-expect-error rehype-pretty-code has no types
Expand All @@ -120,9 +122,6 @@ export default makeSource({
dark: "one-dark-pro",
light: "github-light",
},
defaultLang: {
block: "typescript",
},
},
],
rehypeAutolinkHeadings,
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
"rehype-code-titles": "^1.2.0",
"rehype-pretty-code": "^0.13.0",
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"tailwindcss": "^3.4.1",
"tsx": "^4.7.1",
Expand Down
199 changes: 9 additions & 190 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/app/(experimental)/ai/_components/chat-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export function ChatMessage({ message }: ChatMessageProps) {
<div className="ml-4 flex-1 space-y-2 overflow-hidden px-1">
<MemoizedReactMarkdown
className="prose break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0"
// @ts-expect-error type check to be implemented here for Pluggable
remarkPlugins={[remarkGfm, remarkMath]}
components={{
p({ children }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ interface PageProps {

function getPageFromParams(params: PageProps["params"]) {
const slug = params?.slug?.join("/") ?? ""
const page = allPages.find((page) => page.slugAsParams === slug)
const page = allPages.find(
(page: { slugAsParams: string }) => page.slugAsParams === slug
)

if (!page) {
null
Expand Down
Loading

0 comments on commit e25ecac

Please sign in to comment.