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

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'
}