diff --git a/packages/gitbook-v2/src/app/dynamic/url/[...url]/layout.tsx b/packages/gitbook-v2/src/app/dynamic/url/[...url]/layout.tsx index 76df22824..d37ae8bb2 100644 --- a/packages/gitbook-v2/src/app/dynamic/url/[...url]/layout.tsx +++ b/packages/gitbook-v2/src/app/dynamic/url/[...url]/layout.tsx @@ -1,5 +1,5 @@ -import { SiteContentLayout } from '@/components/routes/SiteContentLayout'; -import { createDynamicSiteContext } from '@/lib/context'; +import { SiteContentLayout } from '@v2/components/routes/SiteContentLayout'; +import { createDynamicSiteContext } from '@v2/lib/context'; export default async function RootLayout({ params, diff --git a/packages/gitbook-v2/src/app/dynamic/url/[...url]/page.tsx b/packages/gitbook-v2/src/app/dynamic/url/[...url]/page.tsx index afc48a206..6f0df88de 100644 --- a/packages/gitbook-v2/src/app/dynamic/url/[...url]/page.tsx +++ b/packages/gitbook-v2/src/app/dynamic/url/[...url]/page.tsx @@ -1,5 +1,5 @@ -import { SiteContentPage } from '@/components/routes/SiteContentPage'; -import { createDynamicSiteContext } from '@/lib/context'; +import { SiteContentPage } from '@v2/components/routes/SiteContentPage'; +import { createDynamicSiteContext } from '@v2/lib/context'; export default async function Page({ params }: { params: Promise<{ url: string[] }> }) { const { url } = await params; diff --git a/packages/gitbook-v2/src/app/static/url/[...url]/layout.tsx b/packages/gitbook-v2/src/app/static/url/[...url]/layout.tsx index 9949ade59..ea207c3a4 100644 --- a/packages/gitbook-v2/src/app/static/url/[...url]/layout.tsx +++ b/packages/gitbook-v2/src/app/static/url/[...url]/layout.tsx @@ -1,7 +1,7 @@ import { unstable_cacheTag as cacheTag } from 'next/cache'; -import { SiteContentLayout } from '@/components/routes/SiteContentLayout'; -import { getSiteCacheTag } from '@/lib/cache'; -import { createStaticSiteContext } from '@/lib/context'; +import { SiteContentLayout } from '@v2/components/routes/SiteContentLayout'; +import { getSiteCacheTag } from '@v2/lib/cache'; +import { createStaticSiteContext } from '@v2/lib/context'; export default async function RootLayout({ params, diff --git a/packages/gitbook-v2/src/app/static/url/[...url]/page.tsx b/packages/gitbook-v2/src/app/static/url/[...url]/page.tsx index e966f4c08..734e46853 100644 --- a/packages/gitbook-v2/src/app/static/url/[...url]/page.tsx +++ b/packages/gitbook-v2/src/app/static/url/[...url]/page.tsx @@ -1,7 +1,7 @@ import { unstable_cacheTag as cacheTag } from 'next/cache'; -import { createStaticSiteContext } from '@/lib/context'; -import { getSiteCacheTag } from '@/lib/cache'; -import { SiteContentPage } from '@/components/routes/SiteContentPage'; +import { createStaticSiteContext } from '@v2/lib/context'; +import { getSiteCacheTag } from '@v2/lib/cache'; +import { SiteContentPage } from '@v2/components/routes/SiteContentPage'; export default async function Page({ params }: { params: Promise<{ url: string[] }> }) { 'use cache'; diff --git a/packages/gitbook-v2/src/components/routes/SiteContentLayout.tsx b/packages/gitbook-v2/src/components/routes/SiteContentLayout.tsx index 664475e7d..1b4a5c641 100644 --- a/packages/gitbook-v2/src/components/routes/SiteContentLayout.tsx +++ b/packages/gitbook-v2/src/components/routes/SiteContentLayout.tsx @@ -1,4 +1,4 @@ -import { GitBookSiteContext } from '@/lib/context'; +import { GitBookSiteContext } from '@v2/lib/context'; /** * Layout component to render the site content. diff --git a/packages/gitbook-v2/src/components/routes/SiteContentPage.tsx b/packages/gitbook-v2/src/components/routes/SiteContentPage.tsx index a1ebb8c29..92d97975b 100644 --- a/packages/gitbook-v2/src/components/routes/SiteContentPage.tsx +++ b/packages/gitbook-v2/src/components/routes/SiteContentPage.tsx @@ -1,4 +1,4 @@ -import { GitBookSiteContext } from '@/lib/context'; +import { GitBookSiteContext } from '@v2/lib/context'; export async function SiteContentPage({ context }: { context: GitBookSiteContext }) { const { api } = context; diff --git a/packages/gitbook-v2/src/lib/context.ts b/packages/gitbook-v2/src/lib/context.ts index 8b0fc57d5..98f8cac53 100644 --- a/packages/gitbook-v2/src/lib/context.ts +++ b/packages/gitbook-v2/src/lib/context.ts @@ -1,7 +1,7 @@ import { headers } from 'next/headers'; import { redirect } from 'next/navigation'; import { GitBookAPI } from '@gitbook/api'; -import { GITBOOK_API_TOKEN, GITBOOK_API_URL, GITBOOK_USER_AGENT } from '@/lib/env'; +import { GITBOOK_API_TOKEN, GITBOOK_API_URL, GITBOOK_USER_AGENT } from '@v2/lib/env'; /** * Generic context about rendering content. diff --git a/packages/gitbook-v2/tsconfig.json b/packages/gitbook-v2/tsconfig.json index 3ddc42993..9df07c03e 100644 --- a/packages/gitbook-v2/tsconfig.json +++ b/packages/gitbook-v2/tsconfig.json @@ -19,7 +19,7 @@ } ], "paths": { - "@/*": ["./src/*"], + "@v2/*": ["./src/*"], "@v1/*": ["../gitbook/src/*"] } },