find lightning module relative to project directory

This commit is contained in:
k00b 2024-11-08 09:37:45 -06:00
parent d6916fa3f4
commit f1b2197d31
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ module.exports = withPlausibleProxy()({
NEXT_PUBLIC_COMMIT_HASH: commitHash,
NEXT_PUBLIC_LND_CONNECT_ADDRESS: process.env.LND_CONNECT_ADDRESS,
NEXT_PUBLIC_ASSET_PREFIX: isProd ? 'https://a.stacker.news' : '',
LIGHTNING_MODULE_PATH: require.resolve('lightning')
// in prod, we build in /var/app/staging and then cp and deploy in /var/app/current
// so we need to resolve the relative path to the lightning module
LIGHTNING_MODULE_PATH: require('path').relative(process.cwd(), require.resolve('lightning'))
},
compress: false,
experimental: {