Skip to content

armgit / ente

Public Imported from GitHub
0

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

next export is deprecated in Next 14

Manav Rathia99903e3e9d5
diff --git a/package.json b/package.json
index 4d94e19614..0e88e4bd85 100644
--- a/package.json
+++ b/package.json
@@ -1,29 +1,23 @@
{
"name": "ente-web",
- "version": "1.0.0",
+ "version": "0.0.0",
"private": true,
"workspaces": [
- "packages/*",
- "apps/*"
+ "apps/*",
+ "packages/*"
],
"scripts": {
- "build:photos": "turbo run build --filter=photos",
- "build:auth": "turbo run build --filter=auth",
- "build:cast": "turbo run build --filter=cast",
- "build:accounts": "turbo run build --filter=accounts",
- "dev:auth": "turbo run dev --filter=auth",
- "dev:photos": "turbo run dev --filter=photos",
- "dev:accounts": "turbo run dev --filter=accounts",
- "dev:web": "turbo run dev --filter=web",
- "dev:cast": "turbo run dev --filter=cast",
- "export:photos": "turbo run export --filter=photos",
- "export:auth": "turbo run export --filter=auth",
- "export:cast": "turbo run export --filter=cast",
- "export:accounts": "turbo run export --filter=accounts",
+ "build:accounts": "TURBO_NO_UPDATE_NOTIFIER=true turbo run build --filter=accounts",
+ "build:auth": "TURBO_NO_UPDATE_NOTIFIER=true turbo run build --filter=auth",
+ "build:cast": "TURBO_NO_UPDATE_NOTIFIER=true turbo run build --filter=cast",
+ "build:photos": "TURBO_NO_UPDATE_NOTIFIER=true turbo run build --filter=photos",
+ "dev:accounts": "TURBO_NO_UPDATE_NOTIFIER=true turbo run dev --filter=accounts",
+ "dev:auth": "TURBO_NO_UPDATE_NOTIFIER=true turbo run dev --filter=auth",
+ "dev:cast": "TURBO_NO_UPDATE_NOTIFIER=true turbo run dev --filter=cast",
+ "dev:photos": "TURBO_NO_UPDATE_NOTIFIER=true turbo run dev --filter=photos",
"lint": "turbo run lint",
"albums": "turbo run albums",
"prepare": "husky install",
- "photos:dev": "TURBO_NO_UPDATE_NOTIFIER=true turbo run dev --filter=photos",
"lint-x": "yarn prettier --check . && yarn workspaces run eslint .",
"lint-fix": "yarn prettier --write . && yarn workspaces run eslint --fix ."
},
diff --git a/packages/shared/next/next.config.base.js b/packages/shared/next/next.config.base.js
index 5c7c212ba7..cabf4929dc 100644
--- a/packages/shared/next/next.config.base.js
+++ b/packages/shared/next/next.config.base.js
@@ -17,6 +17,8 @@ const gitSHA = cp.execSync('git rev-parse --short HEAD', {
});
const nextConfig = {
+ /* generate a static export when we run `next build` */
+ output: 'export',
compiler: {
emotion: {
importMap: {
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index 90facb1e70..38883a63bf 100755
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -17,15 +17,15 @@ rm -rf out
case "$CF_PAGES_BRANCH" in
accounts-*)
- yarn export:accounts
+ yarn build:accounts
cp -R apps/accounts/out .
;;
auth-*)
- yarn export:auth
+ yarn build:auth
cp -R apps/auth/out .
;;
*)
- yarn export:photos
+ yarn build:photos
cp -R apps/photos/out .
;;
esac