File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ const path = require ( 'path' ) ;
2+
13const withNextra = require ( 'nextra' ) ( {
24 theme : 'nextra-theme-docs' ,
35 themeConfig : './theme.config.js'
46} ) ;
57
68module . exports = withNextra ( {
9+ webpack : ( config ) => {
10+ // Ensure React resolves to a single version
11+ config . resolve . alias = {
12+ ...config . resolve . alias ,
13+ 'react' : path . resolve ( __dirname , 'node_modules/react' ) ,
14+ 'react-dom' : path . resolve ( __dirname , 'node_modules/react-dom' ) ,
15+ } ;
16+ return config ;
17+ } ,
718 env : {
819 ASSETS_DIRECTORY : process . env . NEXT_PUBLIC_CLOUDINARY_ASSETS_DIRECTORY || 'assets' ,
920 IMAGES_DIRECTORY : process . env . NEXT_PUBLIC_CLOUDINARY_IMAGES_DIRECTORY || 'images' ,
Original file line number Diff line number Diff line change 1616 "cloudinary" : " ^2.0.1" ,
1717 "clsx" : " ^2.1.0" ,
1818 "next" : " ^14.1.0" ,
19- "next-cloudinary" : " ^6.17.1 " ,
19+ "next-cloudinary" : " workspace:* " ,
2020 "nextjs-google-analytics" : " ^2.3.3" ,
2121 "nextra" : " ^2.13.3" ,
2222 "nextra-theme-docs" : " ^2.13.3" ,
You can’t perform that action at this time.
0 commit comments