express-firebase-middleware icon indicating copy to clipboard operation
express-firebase-middleware copied to clipboard

Change require.main.require to require for firebase-admin

Open 24601 opened this issue 6 years ago • 0 comments

When using this package with a firebase project, in firebase functions for example, using require.main.require instead of require does not work with firebase deploy as the require.main looks for node_modules in the root folder, not the functions folder where the code is all living.

24601 avatar Jan 21 '20 18:01 24601