diff --git a/turbo.json b/turbo.json
index e34402c8b..a89a8f71e 100644
--- a/turbo.json
+++ b/turbo.json
@@ -1,6 +1,5 @@
{
"$schema": "https://turborepo.org/schema.json",
- "baseBranch": "origin/main",
"pipeline": {
"build": {
"dependsOn": ["^build"],
diff --git a/www/components/video.tsx b/www/components/video.tsx
index b2dcaf68d..5658db2ed 100644
--- a/www/components/video.tsx
+++ b/www/components/video.tsx
@@ -46,8 +46,8 @@ export function Video({
diff --git a/www/pages/blog/[...slug].tsx b/www/pages/blog/[...slug].tsx
index 1a690d444..834bc1ebf 100644
--- a/www/pages/blog/[...slug].tsx
+++ b/www/pages/blog/[...slug].tsx
@@ -1,5 +1,6 @@
import { getMdxNode, getMdxPaths } from "next-mdx/server"
import { useHydrate } from "next-mdx/client"
+import { MdxRemote } from "next-mdx-remote/types"
import { Blog } from "types"
import { Layout } from "components/layout"
@@ -11,7 +12,7 @@ export interface BlogsPageProps {
export default function BlogsPage({ blog }: BlogsPageProps) {
const content = useHydrate(blog, {
- components: mdxComponents,
+ components: mdxComponents as unknown as MdxRemote.Components,
})
return (
@@ -42,7 +43,7 @@ export async function getStaticPaths() {
export async function getStaticProps(context) {
const blog = await getMdxNode("blog", context, {
- components: mdxComponents,
+ components: mdxComponents as unknown as MdxRemote.Components,
mdxOptions: {
remarkPlugins: [
require("remark-slug"),
diff --git a/www/pages/docs/[[...slug]].tsx b/www/pages/docs/[[...slug]].tsx
index d40701a8d..24e98b29d 100644
--- a/www/pages/docs/[[...slug]].tsx
+++ b/www/pages/docs/[[...slug]].tsx
@@ -1,6 +1,7 @@
import { getMdxNode, getMdxPaths } from "next-mdx/server"
import { useHydrate } from "next-mdx/client"
import { getTableOfContents, TableOfContents } from "next-mdx-toc"
+import { MdxRemote } from "next-mdx-remote/types"
import { Doc } from "types"
import { docsConfig } from "config/docs"
@@ -17,7 +18,7 @@ export interface DocsPageProps {
export default function DocsPage({ doc, toc }: DocsPageProps) {
const content = useHydrate(doc, {
- components: mdxComponents,
+ components: mdxComponents as unknown as MdxRemote.Components,
})
return (
@@ -65,7 +66,7 @@ export async function getStaticPaths() {
export async function getStaticProps(context) {
const doc = await getMdxNode("doc", context, {
- components: mdxComponents,
+ components: mdxComponents as unknown as MdxRemote.Components,
mdxOptions: {
remarkPlugins: [
require("remark-slug"),
diff --git a/www/pages/guides/[...slug].tsx b/www/pages/guides/[...slug].tsx
index d13215ca6..c937d2350 100644
--- a/www/pages/guides/[...slug].tsx
+++ b/www/pages/guides/[...slug].tsx
@@ -1,6 +1,7 @@
import { getMdxNode, getMdxPaths } from "next-mdx/server"
import { useHydrate } from "next-mdx/client"
import { getTableOfContents, TableOfContents } from "next-mdx-toc"
+import { MdxRemote } from "next-mdx-remote/types"
import { Guide } from "types"
import { guidesConfig } from "config/guides"
@@ -17,7 +18,7 @@ export interface GuidesPageProps {
export default function GuidesPage({ guide, toc }: GuidesPageProps) {
const content = useHydrate(guide, {
- components: mdxComponents,
+ components: mdxComponents as unknown as MdxRemote.Components,
})
return (
@@ -68,7 +69,7 @@ export async function getStaticPaths() {
export async function getStaticProps(context) {
const guide = await getMdxNode("guide", context, {
- components: mdxComponents,
+ components: mdxComponents as unknown as MdxRemote.Components,
mdxOptions: {
remarkPlugins: [
require("remark-slug"),
diff --git a/www/pages/index.tsx b/www/pages/index.tsx
index 584c4901a..eacdb322f 100644
--- a/www/pages/index.tsx
+++ b/www/pages/index.tsx
@@ -2,6 +2,7 @@ import * as React from "react"
import { GetStaticPropsResult } from "next"
import { getAllMdxNodes } from "next-mdx"
import Link from "next/link"
+import { MdxRemote } from "next-mdx-remote/types"
import { site } from "config/site"
import { Feature } from "types"
@@ -16,7 +17,7 @@ interface FeatureCodeProps extends React.HTMLAttributes {
export function FeatureCode({ feature, ...props }: FeatureCodeProps) {
const content = useHydrate(feature, {
- components: mdxComponents,
+ components: mdxComponents as unknown as MdxRemote.Components,
})
return {content}
diff --git a/www/pages/learn/[...slug].tsx b/www/pages/learn/[...slug].tsx
index cfa90dbdb..599d1e111 100644
--- a/www/pages/learn/[...slug].tsx
+++ b/www/pages/learn/[...slug].tsx
@@ -3,6 +3,7 @@ import { getMdxNode, getMdxPaths, getAllMdxNodes } from "next-mdx/server"
import { useHydrate } from "next-mdx/client"
import classNames from "classnames"
import { getTableOfContents, TableOfContents } from "next-mdx-toc"
+import { MdxRemote } from "next-mdx-remote/types"
import { Tutorial } from "types"
import { tutorialsConfig } from "config/tutorials"
@@ -31,7 +32,7 @@ export default function TutorialPage({
toc,
}: TutorialPageProps) {
const content = useHydrate(tutorial, {
- components: mdxComponents,
+ components: mdxComponents as unknown as MdxRemote.Components,
})
const links = group.items.map((tutorial) => ({
@@ -141,7 +142,7 @@ export async function getStaticPaths() {
export async function getStaticProps(context) {
const tutorial = await getMdxNode("tutorial", context, {
- components: mdxComponents,
+ components: mdxComponents as unknown as MdxRemote.Components,
mdxOptions: {
remarkPlugins: [
require("remark-slug"),