Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update next.config.js

Steven Tey20299cb9326d
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 277b138a74..f28638bb6d 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -43,6 +43,14 @@ module.exports = withAxiom({
},
webpack: (config, { webpack, isServer }) => {
if (isServer) {
+ config.plugins.push(
+ // mute errors for unused typeorm deps
+ new webpack.IgnorePlugin({
+ resourceRegExp:
+ /(^@google-cloud\/spanner|^@mongodb-js\/zstd|^aws-crt|^aws4$|^pg-native$|^mongodb-client-encryption$|^@sap\/hana-client$|^@sap\/hana-client\/extension\/Stream$|^snappy$|^react-native-sqlite-storage$|^bson-ext$|^cardinal$|^kerberos$|^hdb-pool$|^sql.js$|^sqlite3$|^better-sqlite3$|^ioredis$|^typeorm-aurora-data-api-driver$|^pg-query-stream$|^oracledb$|^mysql$|^snappy\/package\.json$|^cloudflare:sockets$)/,
+ }),
+ );
+
config.plugins = [...config.plugins, new PrismaPlugin()];
}