File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change 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
44module . 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+ } ;
You can’t perform that action at this time.
0 commit comments