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 Teyea697c7bc970
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index e1cfc78320..57a1391283 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -21,6 +21,7 @@ module.exports = withAxiom({
],
experimental: {
serverComponentsExternalPackages: ["jose"],
+ esmExternals: true,
},
webpack: (config, { webpack, isServer }) => {
if (isServer) {
@@ -35,14 +36,6 @@ module.exports = withAxiom({
config.plugins = [...config.plugins, new PrismaPlugin()];
}
- config.resolve = {
- ...config.resolve,
- alias: {
- ...config.resolve.alias,
- jose: require.resolve("jose"),
- },
- };
-
config.module = {
...config.module,
exprContextCritical: false,