The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
include esmExternals for prod
Steven Tey7f05acef14df
diff --git a/apps/web/next.config.js b/apps/web/next.config.jsindex e21245fc09..f98cf13ca0 100644--- a/apps/web/next.config.js+++ b/apps/web/next.config.js@@ -13,7 +13,17 @@ const REDIRECT_SEGMENTS = [/** @type {import('next').NextConfig} */module.exports = withAxiom({reactStrictMode: false,- transpilePackages: ["shiki", "@dub/prisma", "@dub/email"],+ transpilePackages: [+ "shiki",+ "@dub/prisma",+ "@dub/email",+ "@boxyhq/saml-jackson",+ ],+ ...(process.env.NODE_ENV === "production" && {+ experimental: {+ esmExternals: "loose",+ },+ }),webpack: (config, { webpack, isServer }) => {if (isServer) {config.plugins.push(