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.

loose

Steven Tey0df058e58abd
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 57a1391283..189212ad07 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -20,8 +20,8 @@ module.exports = withAxiom({
"@boxyhq/saml-jackson",
],
experimental: {
- serverComponentsExternalPackages: ["jose"],
- esmExternals: true,
+ serverExternalPackages: ["jose"],
+ esmExternals: "loose",
},
webpack: (config, { webpack, isServer }) => {
if (isServer) {
@@ -36,6 +36,17 @@ module.exports = withAxiom({
config.plugins = [...config.plugins, new PrismaPlugin()];
}
+ config.resolve = {
+ ...config.resolve,
+ extensionAlias: {
+ ".js": [".js", ".ts", ".tsx"],
+ },
+ alias: {
+ ...config.resolve?.alias,
+ jose: require.resolve("jose"),
+ },
+ };
+
config.module = {
...config.module,
exprContextCritical: false,