Skip to content

Commit 3f9e7b6

Browse files
authored
Merge branch 'feature/youtube-tutorial' into feature/add-gutenberg-styles
2 parents d5f62ef + 34c4b17 commit 3f9e7b6

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

frontend/next.config.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
const path = require('path')
2-
const allowedImageWordPressDomain = new URL(process.env.NEXT_PUBLIC_WORDPRESS_SITE_URL).hostname
1+
const path = require( 'path' );
2+
const allowedImageWordPressDomain = new URL( process.env.NEXT_PUBLIC_WORDPRESS_SITE_URL ).hostname;
33

44
module.exports = {
5-
trailingSlash: true,
6-
webpackDevMiddleware: config => {
7-
config.watchOptions = {
8-
poll: 1000,
9-
aggregateTimeout: 300
10-
}
5+
trailingSlash: true,
6+
webpackDevMiddleware: config => {
7+
config.watchOptions = {
8+
poll: 1000,
9+
aggregateTimeout: 300,
10+
};
1111

12-
return config
13-
},
14-
sassOptions: {
15-
includePaths: [path.join(__dirname, 'styles')]
16-
},
17-
/**
18-
* We specify which domains are allowed to be optimized.
19-
* This is needed to ensure that external urls can't be abused.
20-
* @see https://nextjs.org/docs/basic-features/image-optimization#domains
21-
*/
22-
images: {
23-
domains: [ allowedImageWordPressDomain, 'via.placeholder.com' ],
24-
},
12+
return config;
13+
},
14+
sassOptions: {
15+
includePaths: [ path.join( __dirname, 'styles' ) ],
16+
},
17+
/**
18+
* We specify which domains are allowed to be optimized.
19+
* This is needed to ensure that external urls can't be abused.
20+
* @see https://nextjs.org/docs/basic-features/image-optimization#domains
21+
*/
22+
images: {
23+
domains: [ allowedImageWordPressDomain, 'via.placeholder.com' ],
24+
},
2525
async headers() {
2626
return [
2727
{
@@ -43,4 +43,4 @@ module.exports = {
4343
},
4444
];
4545
},
46-
}
46+
};

0 commit comments

Comments
 (0)