Fix native bindings path - correct relative path from dist
- Change to ../../../index.js to account for dist/server/chunks/ depth - Resolves module not found error in production build
This commit is contained in:
parent
53400fed17
commit
7d6946c2d1
|
@ -3,7 +3,7 @@ import { createRequire } from 'module';
|
|||
const require = createRequire(import.meta.url);
|
||||
|
||||
// Require the CommonJS module
|
||||
const nativeBindings = require('../../index.js');
|
||||
const nativeBindings = require('../../../index.js');
|
||||
|
||||
export const {
|
||||
getChurchName,
|
||||
|
|
Loading…
Reference in a new issue