Skip to content

Commit

Permalink
fix(ssr): imported svg paths set wrong
Browse files Browse the repository at this point in the history
follow up to #10982 which fixes things for svgs too
  • Loading branch information
LeoMcA committed Apr 26, 2024
1 parent 1093f7a commit 4c719f5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ssr/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,18 @@ const config = {
ref: true,
},
},
"file-loader?outputPath=/distimages/",
{
loader: "file-loader",
options: {
emitFile: false,
publicPath: "/",
name: "static/media/[name].[hash].[ext]",
},
},
],
issuer: {
and: [/\.(ts|tsx|js|jsx|md|mdx)$/],
},
},
{
test: [/\.avif$/, /\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
Expand Down

0 comments on commit 4c719f5

Please sign in to comment.