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:
5729
pnpm-lock.yaml
generated
5729
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,6 @@ const nextConfig: NextConfig = {
|
|||||||
distDir: 'dist',
|
distDir: 'dist',
|
||||||
basePath: basePath,
|
basePath: basePath,
|
||||||
trailingSlash: true,
|
trailingSlash: true,
|
||||||
turbopack: { root: '/workspace' },
|
|
||||||
transpilePackages: ['@kevisual/api', '@kevisual/router'],
|
transpilePackages: ['@kevisual/api', '@kevisual/router'],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
"@kevisual/api": "^0.0.17",
|
"@kevisual/api": "^0.0.17",
|
||||||
"@kevisual/context": "^0.0.4",
|
"@kevisual/context": "^0.0.4",
|
||||||
"@kevisual/query": "^0.0.35",
|
"@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-checkbox": "^1.3.3",
|
||||||
"@radix-ui/react-dialog": "^1.1.15",
|
"@radix-ui/react-dialog": "^1.1.15",
|
||||||
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
||||||
@@ -25,15 +25,15 @@
|
|||||||
"@radix-ui/react-tabs": "^1.1.13",
|
"@radix-ui/react-tabs": "^1.1.13",
|
||||||
"@radix-ui/react-tooltip": "^1.2.8",
|
"@radix-ui/react-tooltip": "^1.2.8",
|
||||||
"@tanstack/react-table": "^8.21.3",
|
"@tanstack/react-table": "^8.21.3",
|
||||||
"antd": "^6.2.0",
|
"antd": "^6.2.1",
|
||||||
"class-variance-authority": "^0.7.1",
|
"class-variance-authority": "^0.7.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"cmdk": "^1.1.1",
|
"cmdk": "^1.1.1",
|
||||||
"dotenv": "^17.2.3",
|
"dotenv": "^17.2.3",
|
||||||
"es-toolkit": "^1.43.0",
|
"es-toolkit": "^1.44.0",
|
||||||
"idb-keyval": "^6.2.2",
|
"idb-keyval": "^6.2.2",
|
||||||
"lucide-react": "^0.562.0",
|
"lucide-react": "^0.562.0",
|
||||||
"next": "16.1.2",
|
"next": "16.1.4",
|
||||||
"react": "19.2.3",
|
"react": "19.2.3",
|
||||||
"react-dom": "19.2.3",
|
"react-dom": "19.2.3",
|
||||||
"react-resizable-panels": "^4.4.1",
|
"react-resizable-panels": "^4.4.1",
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
import { QueryClient } from '@kevisual/query'
|
import { QueryClient } from '@kevisual/query'
|
||||||
|
|
||||||
const getUrl = () => {
|
const getUrl = () => {
|
||||||
const host = window.location.host
|
const _url = new URL(window.location.href)
|
||||||
const isKevisual = host.includes('kevisual');
|
const pathname = _url.pathname
|
||||||
if (isKevisual) {
|
const [user, repo] = pathname.split('/').filter(Boolean)
|
||||||
return '/api/router'
|
if (repo === 'v1') {
|
||||||
|
return '/' + pathname;
|
||||||
}
|
}
|
||||||
|
|
||||||
return '/client/router'
|
return '/client/router'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,14 @@
|
|||||||
"@/*": [
|
"@/*": [
|
||||||
"./src/*"
|
"./src/*"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"baseUrl": "./",
|
||||||
|
"typeRoots": [
|
||||||
|
"node_modules/@types"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
"src",
|
||||||
"next-env.d.ts",
|
"next-env.d.ts",
|
||||||
"**/*.ts",
|
"**/*.ts",
|
||||||
"**/*.tsx",
|
"**/*.tsx",
|
||||||
|
|||||||
Reference in New Issue
Block a user