diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..7381d75 --- /dev/null +++ b/next.config.js @@ -0,0 +1,20 @@ +// @ts-check + +if ( + process.env.LD_LIBRARY_PATH == null || + !process.env.LD_LIBRARY_PATH.includes( + `${process.env.PWD}/node_modules/canvas/build/Release:`, + ) +) { + process.env.LD_LIBRARY_PATH = `${ + process.env.PWD + }/node_modules/canvas/build/Release:${process.env.LD_LIBRARY_PATH || ''}`; +} + +/** @type {import('next').NextConfig} */ +const nextConfig = { + /* config options here */ +} + +module.exports = nextConfig +