Skip to content

Commit 9f42aa3

Browse files
explicitly allow the Django server as an image source
1 parent 1744a80 commit 9f42aa3

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

client/next.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ const nextConfig = {
1717
return config;
1818
}
1919
: undefined,
20+
21+
images: {
22+
remotePatterns: [
23+
{
24+
protocol: "http",
25+
hostname: "localhost",
26+
port: "8000",
27+
pathname: "/media/**",
28+
},
29+
],
30+
},
2031
};
2132

2233
export default nextConfig;

0 commit comments

Comments
 (0)