Compare commits

9 Commits

Author SHA1 Message Date
siujamo cde8813c77 fix: resolve blank screen caused by redux-persist refactor
Deploy to Vercel / deploy (push) Successful in 1m33s
2026-06-09 17:45:06 +08:00
siujamo 1f74a55dff fix: set Vercel output directory to dist
Deploy to Vercel / deploy (push) Successful in 1m24s
Vercel defaults to "build" but Vite outputs to "dist".
2026-06-08 17:00:01 +08:00
siujamo 531dc6e9aa fix: replace process.env.NODE_ENV with import.meta.env.DEV
Deploy to Vercel / deploy (push) Failing after 1m14s
process.env is not available in the browser tsconfig without
@types/node. import.meta.env.DEV is Vite's built-in equivalent.
2026-06-08 16:54:35 +08:00
siujamo 130e988143 chore: bump dependencies
Deploy to Vercel / deploy (push) Failing after 24s
2026-06-08 16:50:14 +08:00
siujamo 45f8d0ff38 ci: bump vercel-action to v42.3.0
Deploy to Vercel / deploy (push) Failing after 1m42s
2026-06-08 16:47:43 +08:00
siujamo b7a772dc47 fix: replace .npmrc with pnpm-workspace.yaml for build config
Deploy to Vercel / deploy (push) Failing after 1m5s
pnpm-workspace.yaml is the canonical location for allowBuilds
in pnpm v10+, and the package.json trailing comma was cleaned up.
2026-06-08 16:43:43 +08:00
siujamo 66f97ee491 fix: migrate pnpm config from package.json to .npmrc
Deploy to Vercel / deploy (push) Failing after 11s
The "pnpm" field in package.json is no longer read by pnpm v10+,
causing ERR_PNPM_IGNORED_BUILDS in CI. Moved onlyBuiltDependencies
to .npmrc.
2026-06-08 16:41:47 +08:00
siujamo 5db1b5a836 ci: add Gitea Actions workflow for Vercel deployment
Deploy to Vercel / deploy (push) Failing after 41s
2026-06-08 16:39:45 +08:00
Jam'o Siu 624fd61de8 Merge pull request #4 from onixbyte/release/1.1.2
Release 1.1.2
2026-03-02 09:49:14 +08:00
9 changed files with 710 additions and 1092 deletions
+37
View File
@@ -0,0 +1,37 @@
name: Deploy to Vercel
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Deploy to Vercel
uses: amondnet/vercel-action@v42.3.0
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-args: '--prod'
working-directory: ./
-27
View File
@@ -1,27 +0,0 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore: "
groups:
dependency-updates:
patterns: ["*"]
update-types: ["minor", "patch"]
ignore:
- dependency-name: "@types/node"
update-types: ["version-update:semver-major"]
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
+23 -31
View File
@@ -12,41 +12,33 @@
"predeploy": "pnpm build"
},
"dependencies": {
"@reduxjs/toolkit": "^2.11.2",
"@tailwindcss/vite": "^4.1.18",
"axios": "^1.13.2",
"dayjs": "^1.11.19",
"i18next": "^25.7.4",
"i18next-browser-languagedetector": "^8.2.0",
"jsonpath": "^1.1.1",
"lodash": "^4.17.21",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"react-i18next": "^16.5.3",
"react-redux": "^9.2.0",
"react-router": "^7.12.0",
"react-router-dom": "^7.12.0",
"@reduxjs/toolkit": "^2.12.0",
"@tailwindcss/vite": "^4.3.0",
"axios": "^1.17.0",
"dayjs": "^1.11.21",
"i18next": "^26.3.1",
"i18next-browser-languagedetector": "^8.2.1",
"jsonpath": "^1.3.0",
"lodash": "^4.18.1",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-i18next": "^17.0.8",
"react-redux": "^9.3.0",
"react-router": "^7.17.0",
"react-router-dom": "^7.17.0",
"redux-persist": "^6.0.0",
"tailwindcss": "^4.1.18"
"tailwindcss": "^4.3.0"
},
"devDependencies": {
"@types/jsonpath": "^0.2.4",
"@types/lodash": "^4.17.23",
"@types/node": "^22.19.7",
"@types/react": "^19.2.8",
"@types/lodash": "^4.17.24",
"@types/node": "^24.13.1",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.2",
"globals": "^16.5.0",
"prettier": "^3.8.0",
"typescript": "~5.9.3",
"vite": "^7.3.1"
},
"pnpm": {
"ignoredBuiltDependencies": [
"esbuild"
],
"onlyBuiltDependencies": [
"@tailwindcss/oxide"
]
"@vitejs/plugin-react": "^6.0.2",
"globals": "^17.6.0",
"prettier": "^3.8.3",
"typescript": "~6.0.3",
"vite": "^8.0.16"
}
}
+642 -1031
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -0,0 +1,2 @@
allowBuilds:
esbuild: true
+1 -1
View File
@@ -21,7 +21,7 @@ void i18n
.init({
resources,
fallbackLng: "en-GB",
debug: process.env.NODE_ENV === "development",
debug: import.meta.env.DEV,
interpolation: {
escapeValue: false, // React already does escaping
+3 -2
View File
@@ -10,10 +10,11 @@ import {
PURGE,
REGISTER,
} from "redux-persist"
import storage from "redux-persist/lib/storage/session" // use session storage
// import storage from "redux-persist/lib/storage" // use local storage
import createWebStorage from "redux-persist/es/storage/createWebStorage"
import authReducer from "./auth-slice"
const storage = createWebStorage(import.meta.env.VITE_REDUX_STORAGE ?? "local")
const persistConfig = {
key: "root",
storage,
+1
View File
@@ -1,6 +1,7 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_SEO_SITE_URL: string
readonly VITE_REDUX_STORAGE: string
}
interface ImportMeta {
+1
View File
@@ -1,4 +1,5 @@
{
"outputDirectory": "dist",
"rewrites": [
{
"source": "/(.*)",