diff --git a/ssr/webpack.config.js b/ssr/webpack.config.js index d773d11d5249..64a4195de08d 100644 --- a/ssr/webpack.config.js +++ b/ssr/webpack.config.js @@ -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$/],