Skip to content

Commit 8062b4b

Browse files
author
strausr
committed
feat: fixed docs dependency on nect-cloudinary
1 parent c093e2f commit 8062b4b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docs/next.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1+
const path = require('path');
2+
13
const withNextra = require('nextra')({
24
theme: 'nextra-theme-docs',
35
themeConfig: './theme.config.js'
46
});
57

68
module.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',

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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",

0 commit comments

Comments
 (0)