diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts
index d36bd36..2195f95 100644
--- a/docs/.vitepress/config.mts
+++ b/docs/.vitepress/config.mts
@@ -237,9 +237,14 @@ export default defineConfigWithTheme({
],
vite: {
resolve: {
- alias: {
- 'vitepress-openapi': process.env.NODE_ENV === 'production' ? resolve(__dirname, '../../') : resolve(__dirname, '../../src/'),
- },
+ ...(process.env.NODE_ENV === 'production'
+ ? {}
+ : {
+ alias: {
+ 'vitepress-openapi': resolve(__dirname, '../../src/index'),
+ 'vitepress-openapi/client': resolve(__dirname, '../../src/client'),
+ },
+ }),
},
},
})
diff --git a/docs/.vitepress/theme/components/sandbox/Sandbox.vue b/docs/.vitepress/theme/components/sandbox/Sandbox.vue
index d1954dd..8015ae6 100644
--- a/docs/.vitepress/theme/components/sandbox/Sandbox.vue
+++ b/docs/.vitepress/theme/components/sandbox/Sandbox.vue
@@ -1,7 +1,7 @@
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
index 92be26c..d7c5594 100644
--- a/docs/.vitepress/theme/index.ts
+++ b/docs/.vitepress/theme/index.ts
@@ -1,4 +1,4 @@
-import { theme, useOpenapi } from 'vitepress-openapi'
+import { theme, useOpenapi } from 'vitepress-openapi/client'
import DefaultTheme from 'vitepress/theme'
import spec from '../../public/openapi.json' assert {type: 'json'}
import ExampleBlock from './components/ExampleBlock.vue'
diff --git a/docs/composables/usePlayground.md b/docs/composables/usePlayground.md
index da760a7..b99a011 100644
--- a/docs/composables/usePlayground.md
+++ b/docs/composables/usePlayground.md
@@ -5,7 +5,7 @@ The `usePlayground` composable provides functions to manage the Playground.
You can use the `usePlayground` composable to configure the Playground in your `.vitepress/theme/index.js` file, or in any `.md` page/file.
```ts
-import { usePlayground } from 'vitepress-openapi'
+import { usePlayground } from 'vitepress-openapi/client'
export default {
async enhanceApp({ app, router, siteData }) {
diff --git a/docs/composables/useTheme.md b/docs/composables/useTheme.md
index 0fe6d69..7b59090 100644
--- a/docs/composables/useTheme.md
+++ b/docs/composables/useTheme.md
@@ -5,7 +5,7 @@ The `useTheme` composable provides functions to configure the theme.
You can use the `useTheme` composable to configure the theme in your `.vitepress/theme/index.js` file, or in any `.md` page/file.
```ts
-import { useTheme, locales } from 'vitepress-openapi'
+import { useTheme, locales } from 'vitepress-openapi/client'
export default {
async enhanceApp({app, router, siteData}) {
diff --git a/docs/customizations/i18n.md b/docs/customizations/i18n.md
index 0df941b..fdcbc4e 100644
--- a/docs/customizations/i18n.md
+++ b/docs/customizations/i18n.md
@@ -9,7 +9,7 @@ You can use the `useTheme` composable to configure internationalization in your
```vue