We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eb545b commit 41b70b3Copy full SHA for 41b70b3
1 file changed
docs/docusaurus.config.js
@@ -5,6 +5,11 @@ const path = require('path');
5
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
6
const lightCodeTheme = require('prism-react-renderer/themes/github');
7
8
+// Node 18 lacks a global File in some environments; undici expects it during build.
9
+if (typeof globalThis.File === 'undefined') {
10
+ globalThis.File = require('undici').File;
11
+}
12
+
13
const { extendedExamples } = require('./src/data/extendedExamples.js');
14
const { screenshots } = require('./src/data/screenshots.js');
15
const { themeColors } = require('./src/data/themeColors.js');
0 commit comments