Skip to content

Commit

Permalink
sett base til ./ for deployete storybooks (#4763)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannbm authored Nov 4, 2024
1 parent 8144e2b commit fe32c9e
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions apps/engangsstonad/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
async viteFinal(c) {
async viteFinal(c, { configType }) {
return mergeConfig(c, {
base: viteConfig.base,
base: configType === 'DEVELOPMENT' ? viteConfig.base : './',
});
},
staticDirs: ['../../../scripts/mock-service-worker'],
Expand Down
4 changes: 2 additions & 2 deletions apps/foreldrepengeoversikt/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
async viteFinal(c) {
async viteFinal(c, { configType }) {
return mergeConfig(c, {
base: viteConfig.base,
base: configType === 'DEVELOPMENT' ? viteConfig.base : './',
});
},
staticDirs: ['../../../scripts/mock-service-worker'],
Expand Down
4 changes: 2 additions & 2 deletions apps/foreldrepengesoknad/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
async viteFinal(c) {
async viteFinal(c, { configType }) {
return mergeConfig(c, {
base: viteConfig.base,
base: configType === 'DEVELOPMENT' ? viteConfig.base : './',
});
},
staticDirs: ['../../../scripts/mock-service-worker'],
Expand Down
4 changes: 2 additions & 2 deletions apps/planlegger/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
async viteFinal(c) {
async viteFinal(c, { configType }) {
return mergeConfig(c, {
base: viteConfig.base,
base: configType === 'DEVELOPMENT' ? viteConfig.base : './',
});
},
staticDirs: ['../../../scripts/mock-service-worker'],
Expand Down
4 changes: 2 additions & 2 deletions apps/svangerskapspengesoknad/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
async viteFinal(c) {
async viteFinal(c, { configType }) {
return mergeConfig(c, {
base: viteConfig.base,
base: configType === 'DEVELOPMENT' ? viteConfig.base : './',
});
},
staticDirs: ['../../../scripts/mock-service-worker'],
Expand Down
4 changes: 2 additions & 2 deletions apps/veiviser-fp-eller-es/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
async viteFinal(c) {
async viteFinal(c, { configType }) {
return mergeConfig(c, {
base: viteConfig.base,
base: configType === 'DEVELOPMENT' ? viteConfig.base : './',
});
},
staticDirs: ['../../../scripts/mock-service-worker'],
Expand Down
4 changes: 2 additions & 2 deletions apps/veiviser-hva-skjer-nar/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
async viteFinal(c) {
async viteFinal(c, { configType }) {
return mergeConfig(c, {
base: viteConfig.base,
base: configType === 'DEVELOPMENT' ? viteConfig.base : './',
});
},
staticDirs: ['../../../scripts/mock-service-worker'],
Expand Down
4 changes: 2 additions & 2 deletions apps/veiviser-hvor-mye/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
async viteFinal(c) {
async viteFinal(c, { configType }) {
return mergeConfig(c, {
base: viteConfig.base,
base: configType === 'DEVELOPMENT' ? viteConfig.base : './',
});
},
staticDirs: ['../../../scripts/mock-service-worker'],
Expand Down

0 comments on commit fe32c9e

Please sign in to comment.