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.

more workarounds

Steven Tey72a6e242c77d
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 084cfbbd10..551ffbb0f8 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -20,6 +20,9 @@ module.exports = withAxiom({
"@boxyhq/saml-jackson",
"jose",
],
+ experimental: {
+ serverComponentsExternalPackages: ["jose"],
+ },
webpack: (config, { webpack, isServer }) => {
if (isServer) {
config.plugins.push(
@@ -33,6 +36,14 @@ 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,