Skip to content

Commit ec1ded9

Browse files
authored
fix(ssr): imported svg paths set wrong (#11012)
follow up to #10982 which fixes things for svgs too
1 parent 930c9cf commit ec1ded9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: ssr/webpack.config.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,18 @@ const config = {
5454
ref: true,
5555
},
5656
},
57-
"file-loader?outputPath=/distimages/",
57+
{
58+
loader: "file-loader",
59+
options: {
60+
emitFile: false,
61+
publicPath: "/",
62+
name: "static/media/[name].[hash].[ext]",
63+
},
64+
},
5865
],
66+
issuer: {
67+
and: [/\.(ts|tsx|js|jsx|md|mdx)$/],
68+
},
5969
},
6070
{
6171
test: [/\.avif$/, /\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],

0 commit comments

Comments
 (0)