From f202920228c418a3db38bab73768b91cae08a1e4 Mon Sep 17 00:00:00 2001 From: TechQuery Date: Thu, 5 Sep 2024 06:50:51 +0800 Subject: [PATCH] [add] 404 NGO page [optimize] update Next.js configuration, Docker file & GitHub actions [optimize] upgrade to Node.js 20, KoAJAX 3, MobX RESTful 1 & other latest Upstream packages --- .github/workflows/deploy-production.yml | 15 +- .github/workflows/main.yml | 5 + .github/workflows/pull-request.yml | 9 + Dockerfile | 17 +- components/NotFoundCard.tsx | 20 + next-env.d.ts | 2 +- next.config.mjs | 34 +- package.json | 52 +- pages/_app.tsx | 5 +- pages/_error.tsx | 28 +- pages/api/core.ts | 3 +- pages/index.tsx | 5 +- pages/open-source.tsx | 31 +- pnpm-lock.yaml | 4390 ++++++++++++----------- tsconfig.json | 7 +- 15 files changed, 2362 insertions(+), 2261 deletions(-) create mode 100644 components/NotFoundCard.tsx diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index f399158..3da687a 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -24,14 +24,16 @@ jobs: - name: Inject Environment variables run: | + echo "BOX_NAME=${BOX_NAME@L}" >> "${GITHUB_ENV}" + echo "BOX_URL=${BOX_URL@L}" >> "${GITHUB_ENV}" cat > .env.local < = ({ title }) => + i18n.currentLanguage.startsWith('zh') ? ( +