Skip to content

Commit

Permalink
Adding next config with path configuration for fixing canvas dependen…
Browse files Browse the repository at this point in the history
  • Loading branch information
the0w1 committed Feb 9, 2024
1 parent 03c55d9 commit d7a3854
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d7a3854

Please sign in to comment.