on master help sign in
package: add vercel-build
commit3f7d143d2180107b9f531b01425aa68363df348f authorMatilde Park <matilde.park@urbit.org> dateWed 17 Aug 2022, 12:29 (4 years ago) parentf150828
2 files changed+2−13
next.config.js−12 package.json+2−1
next.config.js−12
@@ -1,15 +1,3 @@
1−// For exporting sigil pngs on Vercel, see https://github.com/Automattic/node-canvas/issues/1779#issuecomment-895885846
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−
131module.exports = {
142 reactStrictMode: false,
153 // target: 'serverless',
package.json+2−1
@@ -12,7 +12,8 @@
1212 "getting-started-tree": "node lib/buildPageTree getting-started weight",
1313 "overview-tree": "node lib/buildPageTree overview weight",
1414 "cache-posts": "node lib/cache.js",
15− "rss": "node lib/rss.js"
15+ "rss": "node lib/rss.js",
16+ "vercel-build": "yum install libuuid-devel libmount-devel && cp /lib64/{libuuid,libmount,libblkid}.so.1 node_modules/canvas/build/Release/ && npm run build"
1617 },
1718 "dependencies": {
1819 "@iarna/toml": "^2.2.5",