express-firebase-middleware
express-firebase-middleware copied to clipboard
Change require.main.require to require for firebase-admin
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.