mirror of
https://github.com/luxfi/bridge.git
synced 2026-09-24 00:26:46 +00:00
Fix server build: use pnpm exec instead of pnpx, remove firebase-admin from externals
- pnpx acts as pnpm dlx, downloading latest prisma v7 from npm instead of using locally installed v6.3.1. Switch to pnpm exec for local execution. - Remove firebase-admin from webpack externals since externals prevents NormalModuleReplacementPlugin from intercepting the imports. The plugin regex now properly catches all firebase-admin/* paths and redirects to stub.
This commit is contained in:
@@ -74,8 +74,7 @@ module.exports = (phase, { defaultConfig }) => {
|
||||
},
|
||||
webpack: (config, { isServer, dev }) => {
|
||||
config.cache = false; // Disable Webpack's persistent caching
|
||||
config.externals.push("pino-pretty", "lokijs", "encoding",
|
||||
"firebase-admin", "firebase-admin/app", "firebase-admin/auth", "firebase-admin/firestore");
|
||||
config.externals.push("pino-pretty", "lokijs", "encoding");
|
||||
config.resolve.fallback = { fs: false, net: false, tls: false };
|
||||
config.resolve.alias['@'] = path.resolve(__dirname, 'src');
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
"tc": "tsc",
|
||||
"typecheck": "tsc",
|
||||
"clean": "rm -rf ./node_modules",
|
||||
"prisma:gen": "pnpx prisma generate",
|
||||
"build": "pnpx prisma generate && tsc && tsc-alias",
|
||||
"prisma:gen": "pnpm exec prisma generate",
|
||||
"build": "pnpm exec prisma generate && tsc && tsc-alias",
|
||||
"start": "node dist/server.js",
|
||||
"lint": "eslint src/**/*.ts",
|
||||
"format": "eslint src/**/*.ts --fix",
|
||||
|
||||
Reference in New Issue
Block a user