Skip to content

Commit 6b1f1b5

Browse files
committed
fix: build
1 parent f0964da commit 6b1f1b5

9 files changed

Lines changed: 10 additions & 14 deletions

File tree

.storybook/main.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const config = {
4444
name: '@storybook/nextjs',
4545
options: {},
4646
},
47-
staticDirs: ['./public', './msw'],
47+
staticDirs: ['./public', './msw', '../src/images'],
4848
webpackFinal: async (config) => {
4949
config.resolve.alias = {
5050
...config.resolve.alias,
@@ -64,13 +64,13 @@ const config = {
6464
use: ['@svgr/webpack'],
6565
})
6666
// add image support
67-
config.module?.rules?.push({
68-
test: /\.(png|jpe?g|gif|svg)$/i,
69-
type: 'asset/resource',
70-
generator: {
71-
filename: 'static/media/[name].[hash][ext]',
72-
},
73-
})
67+
// config.module?.rules?.push({
68+
// test: /\.(png|jpe?g|gif|svg)$/i,
69+
// type: 'asset/resource',
70+
// generator: {
71+
// filename: 'static/media/[name].[hash][ext]',
72+
// },
73+
// })
7474
return config
7575
}, // No need for webpackFinal if you're using the addon-styling-webpack
7676
}

next.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ const nextConfig = {
55
},
66
eslint: {
77
dirs: ['src'], // Add your folders here
8-
},
9-
images: {
10-
118
},
129
reactStrictMode: true,
1310
webpack(config) {

src/components/HeaderFooter/HeaderDesktop.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { useState, useEffect } from 'react'
33
import { Menu, X } from 'lucide-react'
44
import { Container } from '@/components/Other/Container'
55
import { BrandLogo } from './BrandLogo'
6-
import logoLight from '../../../.storybook/public/cortex-reply-light.png'
7-
import logoDark from '../../../.storybook/public/cortex-reply-light.png'
6+
import logoLight from '../../images/cortex-reply-light.png'
7+
import logoDark from '../../images/cortex-reply-dark.png'
88

99
interface HeaderProps {
1010
isMenuOpen: boolean

src/components/ui/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,3 @@ export { Badge, badgeVariants } from './badge'
122122
export * from './checkbox'
123123
export * from './select'
124124
export * from './textarea'
125-
export * from './pagination'

src/images/cortex-reply-bw.png

11.5 KB
Loading

src/images/cortex-reply-dark.png

6.86 KB
Loading
39.9 KB
Loading

src/images/cortex-reply-light.png

7.16 KB
Loading

src/images/cortex-reply.png

7.16 KB
Loading

0 commit comments

Comments
 (0)