find lightning module relative to project directory
This commit is contained in:
parent
d6916fa3f4
commit
f1b2197d31
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue