next export is deprecated in Next 14
This commit is contained in:
parent
97ff657ba6
commit
a99903e3e9
3 changed files with 16 additions and 20 deletions
28
package.json
28
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 ."
|
||||
},
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue