We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36ea956 commit d7cdc14Copy full SHA for d7cdc14
config/config.js
@@ -1,3 +1,15 @@
1
+// For building on vercel: https://github.com/Automattic/node-canvas/issues/1779
2
+if (
3
+ process.env.LD_LIBRARY_PATH == null ||
4
+ !process.env.LD_LIBRARY_PATH.includes(
5
+ `${process.env.PWD}/node_modules/canvas/build/Release:`
6
+ )
7
+) {
8
+ process.env.LD_LIBRARY_PATH = `${
9
+ process.env.PWD
10
+ }/node_modules/canvas/build/Release:${process.env.LD_LIBRARY_PATH || ''}`
11
+}
12
+
13
export default {
14
mode: 'site',
15
title: 'G2Plot React',
0 commit comments