From 712949cc2d33731d5b24114f82ecc3ed240499a9 Mon Sep 17 00:00:00 2001 From: robertu <4065233+robertu7@users.noreply.github.com> Date: Thu, 7 Dec 2023 17:26:04 +0800 Subject: [PATCH] feat(admin): revise vercel-build script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 54fe60d595..403e174b3f 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "prepare": "husky install", - "vercel-build": "set -xe; npm run gen:type && if [[ \"$NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF\" =~ release/* ]] ; then cp -va .env.prod .env.local ; echo 'NEXT_PUBLIC_SITE_DOMAIN=web-next.matters.town' | tee -a .env.local; else cp -va .env.dev .env.local ; echo 'NEXT_PUBLIC_SITE_DOMAIN=web-dev.matters.town' | tee -a .env.local ; fi && echo 'NEXT_PUBLIC_NEXT_ASSET_DOMAIN=' | tee -a .env.local && npm run build", + "vercel-build": "set -xe; npm run gen:type && if [[ \"$NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF\" =~ release/* ]] ; then cp -va .env.prod .env.local ; { echo 'NEXT_PUBLIC_SITE_DOMAIN=web-next.matters.town'; echo 'NEXT_PUBLIC_ADMIN_VIEW=true'; } | tee -a .env.local; else cp -va .env.dev .env.local ; { echo 'NEXT_PUBLIC_SITE_DOMAIN=web-dev.matters.town'; echo 'NEXT_PUBLIC_ADMIN_VIEW=true'; } | tee -a .env.local ; fi && echo 'NEXT_PUBLIC_NEXT_ASSET_DOMAIN=' | tee -a .env.local && npm run build", "i18n:extract": "formatjs extract 'src/**/*.ts*' --ignore='**/*.d.ts' --id-interpolation-pattern '[sha512:contenthash:base64:6]' --out-file lang/default.json", "i18n:generate": "node bin/i18nGenerate.js", "i18n:compile": "formatjs compile-folder --ast lang compiled-lang",