Skip to content

Commit

Permalink
fix playground & build
Browse files Browse the repository at this point in the history
  • Loading branch information
chakAs3 committed Sep 29, 2023
1 parent 92c8160 commit 07cbfd4
Show file tree
Hide file tree
Showing 6 changed files with 1,502 additions and 605 deletions.
10 changes: 5 additions & 5 deletions packages/storybook-nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@
"release": "pnpm changelogen --release --push && pnpm publish"
},
"peerDependencies": {
"nuxt": "^3.6.5",
"nuxt": "^3.6 || ^3.7",
"vite": "^4.0.0",
"vue": "^3.3.4"
},
"dependencies": {
"@nuxt/devtools-kit": "^0.7.4",
"@nuxt/kit": "^3.6.5",
"@nuxt/schema": "^3.6.5",
"@nuxt/vite-builder": "^3.6.5",
"@nuxt/devtools-kit": "latest",
"@nuxt/kit": "^3.7.4",
"@nuxt/schema": "^3.7.4",
"@nuxt/vite-builder": "^3.7.4",
"@storybook/builder-vite": "7.4.4",
"@storybook/vue3": "7.4.4",
"@storybook/vue3-vite": "7.4.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/storybook-nuxt/playground/components/MyNuxtPage.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script>
<script setup>
</script>

Expand All @@ -7,7 +7,7 @@
<NuxtPage />
<template #footer>
<div class="text-center p-4 op-50">
Current route: <code>{{ route.path }}</code>
Current route: <code>{{ $route.path }}</code>
</div>
</template>
</v-container>
Expand Down
5 changes: 3 additions & 2 deletions packages/storybook-nuxt/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"devDependencies": {
"@invictus.codes/nuxt-vuetify": "^0.3.0",
"@nuxt/devtools": "^0.7.0",
"@nuxt/devtools": "latest",
"@nuxt/image": "rc",
"@nuxt/ui-templates": "^1.3.1",
"@nuxtjs/color-mode": "^3.3.0",
Expand All @@ -28,7 +28,8 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "7.4.4",
"typescript": "^5.1.0"
"typescript": "^5.1.0",
"vue-router": "4.2.5"
},
"pnpm": {
"overrides": {
Expand Down
7 changes: 5 additions & 2 deletions packages/storybook-nuxt/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ async function defineNuxtConfig(baseConfig: Record<string, any>) {
ready: false,
dev: false,
overrides: {
ssr: true,
ssr: false,
target: 'static',
build: {
ssr: false,
},
},
})

Expand All @@ -65,7 +68,7 @@ async function defineNuxtConfig(baseConfig: Record<string, any>) {
extendComposables(nuxt)
addPlugin({
src: join(pluginsDir, 'storybook'),
mode: 'all',
mode: 'client',
})
// Override nuxt-link component to use storybook router
extendComponents(nuxt)
Expand Down
2 changes: 1 addition & 1 deletion playgrounds/my-nuxt-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"devDependencies": {
"@nuxt/devtools": "latest",
"@types/node": "^18.17.3",
"nuxt": "3.6.5"
"nuxt": "3.7.4"
}
}
Loading

0 comments on commit 07cbfd4

Please sign in to comment.