We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90d245c commit 0f82579Copy full SHA for 0f82579
1 file changed
src/index.ts
@@ -116,12 +116,11 @@ async function buildNuxt (options: StorybookOptions) {
116
* Filter server-side plugins
117
*/
118
nuxt.options.plugins = nuxt.options.plugins.filter((plugin) => {
119
- let src = plugin
120
if (typeof plugin === 'object') {
121
- src = plugin.src
+ return !plugin.mode || plugin.mode === 'client'
122
}
123
124
- if (typeof src === 'string' && src.match(/\.server\.?(.*)\.(ts|js)/)) {
+ if (typeof plugin === 'string' && plugin.match(/\.server\.?(.*)\.(ts|js)/)) {
125
return false
126
127
0 commit comments