Skip to content

Commit 35fdf2d

Browse files
authored
fix images not working in self-hodted env (#110)
1 parent 5c9c52e commit 35fdf2d

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

next.config.js

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,12 @@ const config = {
3535
images: {
3636
remotePatterns: [
3737
{
38-
hostname: 'upload-dev.splitpro.app',
39-
port: '',
40-
pathname: '/**',
38+
protocol: 'https',
39+
hostname: '**',
4140
},
4241
{
43-
hostname: 'uploads.splitpro.app',
44-
port: '',
45-
pathname: '/**',
46-
},
47-
{
48-
hostname: 's3.amazonaws.com',
49-
port: '',
50-
pathname: '/**',
51-
},
52-
{
53-
hostname: 'splitwise.s3.amazonaws.com',
54-
port: '',
55-
pathname: '/**',
56-
},
57-
{
58-
hostname: 'api.producthunt.com',
59-
port: '',
60-
pathname: '/**',
42+
protocol: 'http',
43+
hostname: '**',
6144
},
6245
],
6346
},

0 commit comments

Comments
 (0)