Skip to content

Commit 6f6dda8

Browse files
committed
add img handling config to hopefully reduce need for sharp since we don't need img optimization
1 parent b795771 commit 6f6dda8

File tree

3 files changed

+7
-40
lines changed

3 files changed

+7
-40
lines changed

package-lock.json

Lines changed: 0 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@
7474
"typescript": "^5",
7575
"typescript-eslint": "^8.34.0"
7676
},
77-
"optionalDependencies": {
78-
"@next/swc-linux-x64-gnu": "^15.3.3",
79-
"@next/swc-linux-x64-musl": "^15.3.3"
80-
},
8177
"lint-staged": {
8278
"*.js": "eslint --cache --fix",
8379
"*.ts": "eslint --cache --fix",

src/ui/next.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ const nextConfig: NextConfig = {
2424
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] }, // exclude if *.svg?url
2525
use: ['@svgr/webpack'],
2626
},
27+
{
28+
test: /\.(png|jpe?g|gif|webp|avif)$/i,
29+
type: 'asset/resource',
30+
generator: {
31+
filename: 'static/images/[name].[hash][ext]',
32+
},
33+
},
2734
{
2835
test: /\.(woff|woff2|eot|ttf|otf)$/,
2936
type: 'asset/resource',

0 commit comments

Comments
 (0)