chore: update next.config.ts and package dependencies

- Removed turbopack configuration from next.config.ts.
- Updated @kevisual/router from ^0.0.53 to ^0.0.60 in package.json.
- Updated antd from ^6.2.0 to ^6.2.1 in package.json.
- Updated es-toolkit from ^1.43.0 to ^1.44.0 in package.json.
- Updated next from 16.1.2 to 16.1.4 in package.json.
- Modified query.ts to improve URL handling for API routing.
- Updated tsconfig.json to include baseUrl and typeRoots for better module resolution.
This commit is contained in:
2026-01-21 17:31:03 +08:00
parent b2f315a459
commit 8ba90c00be
5 changed files with 103 additions and 5652 deletions

5729
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,6 @@ const nextConfig: NextConfig = {
distDir: 'dist',
basePath: basePath,
trailingSlash: true,
turbopack: { root: '/workspace' },
transpilePackages: ['@kevisual/api', '@kevisual/router'],
};

View File

@@ -13,7 +13,7 @@
"@kevisual/api": "^0.0.17",
"@kevisual/context": "^0.0.4",
"@kevisual/query": "^0.0.35",
"@kevisual/router": "^0.0.53",
"@kevisual/router": "^0.0.60",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
@@ -25,15 +25,15 @@
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-tooltip": "^1.2.8",
"@tanstack/react-table": "^8.21.3",
"antd": "^6.2.0",
"antd": "^6.2.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"dotenv": "^17.2.3",
"es-toolkit": "^1.43.0",
"es-toolkit": "^1.44.0",
"idb-keyval": "^6.2.2",
"lucide-react": "^0.562.0",
"next": "16.1.2",
"next": "16.1.4",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-resizable-panels": "^4.4.1",

View File

@@ -2,12 +2,12 @@
import { QueryClient } from '@kevisual/query'
const getUrl = () => {
const host = window.location.host
const isKevisual = host.includes('kevisual');
if (isKevisual) {
return '/api/router'
const _url = new URL(window.location.href)
const pathname = _url.pathname
const [user, repo] = pathname.split('/').filter(Boolean)
if (repo === 'v1') {
return '/' + pathname;
}
return '/client/router'
}

View File

@@ -5,9 +5,14 @@
"@/*": [
"./src/*"
]
}
},
"baseUrl": "./",
"typeRoots": [
"node_modules/@types"
]
},
"include": [
"src",
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",