Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Make src work with next

Manav Rathi72639699534d
diff --git a/apps/photos/package.json b/apps/photos/package.json
index 3ef494dfae..9eacd2f717 100644
--- a/apps/photos/package.json
+++ b/apps/photos/package.json
@@ -11,7 +11,7 @@
},
"dependencies": {
"@date-io/date-fns": "^2.14.0",
- "@ente-io/utils": "file:packages/utils",
+ "@ente-io/utils": "*",
"@mui/x-date-pickers": "^5.0.0-alpha.6",
"@sentry/nextjs": "^7.77.0",
"@stripe/stripe-js": "^1.13.2",
diff --git a/packages/shared/next/next.config.base.js b/packages/shared/next/next.config.base.js
index 4585ba454d..6b99d17d5f 100644
--- a/packages/shared/next/next.config.base.js
+++ b/packages/shared/next/next.config.base.js
@@ -35,7 +35,12 @@ const nextConfig = {
},
},
},
- transpilePackages: ['@mui/material', '@mui/system', '@mui/icons-material'],
+ transpilePackages: [
+ '@ente-io/utils',
+ '@mui/material',
+ '@mui/system',
+ '@mui/icons-material',
+ ],
// Add environment variables to the JavaScript bundle. They will be
// available as `process.env.VAR_NAME` to our code.
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 48b6598732..22cac4b8c4 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -3,6 +3,6 @@
"version": "0.0.0",
"private": true,
"exports": {
- "hello": "./src/hello"
+ "./hello": "./src/hello"
}
}