mirror of
https://github.com/luxfi/bridge.git
synced 2026-09-24 00:26:46 +00:00
Add firebase-admin to webpack externals for server build
firebase-admin is not installed in bridge workspace but gets imported transitively via @hanzo/auth/server. Webpack aliases alone can't resolve uninstalled modules - externals prevents webpack from trying to bundle them.
This commit is contained in:
@@ -73,7 +73,8 @@ module.exports = (phase, { defaultConfig }) => {
|
||||
},
|
||||
webpack: (config, { isServer, dev }) => {
|
||||
config.cache = false; // Disable Webpack's persistent caching
|
||||
config.externals.push("pino-pretty", "lokijs", "encoding");
|
||||
config.externals.push("pino-pretty", "lokijs", "encoding",
|
||||
"firebase-admin", "firebase-admin/app", "firebase-admin/auth", "firebase-admin/firestore");
|
||||
config.resolve.fallback = { fs: false, net: false, tls: false };
|
||||
config.resolve.alias['@'] = path.resolve(__dirname, 'src');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user