Skip to content

Commit 6fb9386

Browse files
committed
fix(profile): image CORS issue from Web3bio Profile
1 parent ca729ab commit 6fb9386

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

next.config.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
1919
enabled: process.env.ANALYZE === 'true',
2020
});
2121

22+
const openbuildDomains = [
23+
'openbuild.xyz',
24+
'file-cdn.openbuild.xyz',
25+
's3.us-west-1.amazonaws.com',
26+
];
27+
28+
const web3bioDomains = [
29+
'gw.ipfs-lens.dev',
30+
];
31+
2232
module.exports = withBundleAnalyzer({
2333
// env: {
2434
// NEXT_PUBLIC_ENV: 'PRODUCTION', //your next configs goes here
@@ -35,15 +45,14 @@ module.exports = withBundleAnalyzer({
3545
},
3646
images: {
3747
domains: [
38-
'openbuild.xyz',
48+
...openbuildDomains,
3949
'assets.website-files.com',
4050
'images.unsplash.com',
4151
'img.foresightnews.pro',
4252
'statics.ambcrypto.com',
4353
's1.ax1x.com',
4454
'imgse.com',
45-
's3.us-west-1.amazonaws.com',
46-
'file-cdn.openbuild.xyz',
55+
...web3bioDomains,
4756
],
4857
},
4958
webpack: config => {

0 commit comments

Comments
 (0)