Browse Source

fix: enable experimental outside dir

httpjamesm 1 năm trước cách đây
mục cha
commit
4f0f7b6e1a

+ 3 - 0
apps/accounts/next.config.js

@@ -5,4 +5,7 @@ module.exports = {
     images: {
         unoptimized: true,
     },
+    experimental: {
+        externalDir: true,
+    },
 };

+ 2 - 1
apps/accounts/package.json

@@ -13,5 +13,6 @@
     "devDependencies": {
         "@types/node": "^14.6.4",
         "@types/react": "^16.9.49"
-    }
+    },
+    "types": "src/index.ts"
 }

+ 2 - 1
apps/accounts/tsconfig.json

@@ -18,7 +18,8 @@
         "**/*.ts",
         "**/*.tsx",
         "**/*.js",
-        "../../packages/shared/themes/mui-theme.d.ts"
+        "../../packages/shared/themes/mui-theme.d.ts",
+        "../../packages/accounts/**/*.tsx"
     ],
     "exclude": ["node_modules", "out", ".next", "thirdparty"]
 }

+ 1 - 0
packages/shared/next/next.config.base.js

@@ -40,6 +40,7 @@ module.exports = (phase) =>
                 '@mui/material',
                 '@mui/system',
                 '@mui/icons-material',
+                '@ente/accounts',
             ],
             env: {
                 SENTRY_RELEASE: GIT_SHA,