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 41b70b3 commit 96fd417Copy full SHA for 96fd417
2 files changed
.circleci/config.yml
@@ -106,6 +106,7 @@ jobs:
106
name: Build docs
107
command: |
108
export DOCUSAURUS_BASE_URL="/output/job/$CIRCLE_WORKFLOW_JOB_ID/artifacts/$CIRCLE_NODE_INDEX/docs/"
109
+ export NODE_OPTIONS="--require $(pwd)/docs/scripts/node-shims.cjs"
110
cd docs && yarn build && cd ..
111
bash .circleci/comment-artifacts.sh
112
- store_artifacts:
docs/scripts/node-shims.cjs
@@ -0,0 +1,5 @@
1
+// Ensure web-compatible globals exist during Node build (undici requires File).
2
+if (typeof globalThis.File === 'undefined') {
3
+ globalThis.File = require('undici').File;
4
+}
5
+
0 commit comments