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 Tey4ccd9640f1d4
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index b2cb8b86f9..8a070ae492 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -13,11 +13,12 @@ const REDIRECT_SEGMENTS = [
/** @type {import('next').NextConfig} */
module.exports = withAxiom({
reactStrictMode: false,
- transpilePackages: ["shiki", "@dub/prisma", "@dub/email"],
- experimental: {
- serverComponentsExternalPackages: ["@boxyhq/saml-jackson", "jose"],
- esmExternals: "loose",
- },
+ transpilePackages: [
+ "shiki",
+ "@dub/prisma",
+ "@dub/email",
+ "@boxyhq/saml-jackson",
+ ],
webpack: (config, { webpack, isServer }) => {
if (isServer) {
config.plugins.push(
@@ -29,18 +30,15 @@ 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.resolve = {
+ ...config.resolve,
+ alias: {
+ ...config.resolve?.alias,
+ jose: require.resolve("jose/dist/node/cjs/index.js"),
+ },
+ };
+ }
config.module = {
...config.module,