Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: use tsconfigPaths for vinext (#33363)

Stephen Zhoub66097b5f31d
diff --git a/web/app/layout.tsx b/web/app/layout.tsx
index addd5c2d5a0..2d814162d1e 100644
--- a/web/app/layout.tsx
+++ b/web/app/layout.tsx
@@ -1,6 +1,6 @@
import type { Viewport } from 'next'
import { Agentation } from 'agentation'
-import { Provider as JotaiProvider } from 'jotai'
+import { Provider as JotaiProvider } from 'jotai/react'
import { ThemeProvider } from 'next-themes'
import { Instrument_Serif } from 'next/font/google'
import { NuqsAdapter } from 'nuqs/adapters/next/app'
diff --git a/web/package.json b/web/package.json
index c82e05a6bc7..117f63b608d 100644
--- a/web/package.json
+++ b/web/package.json
@@ -237,7 +237,7 @@
"tsx": "4.21.0",
"typescript": "5.9.3",
"uglify-js": "3.19.3",
- "vinext": "https://pkg.pr.new/hyoban/vinext/vinext@fe9a72c",
+ "vinext": "0.0.29",
"vite": "8.0.0-beta.18",
"vite-plugin-inspect": "11.3.3",
"vite-tsconfig-paths": "6.1.1",
diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml
index 802396547eb..e04c52923c3 100644
--- a/web/pnpm-lock.yaml
+++ b/web/pnpm-lock.yaml
@@ -589,8 +589,8 @@ importers:
specifier: 3.19.3
version: 3.19.3
vinext:
- specifier: https://pkg.pr.new/hyoban/vinext/vinext@fe9a72c
+ specifier: 0.0.29
vite:
specifier: 8.0.0-beta.18
@@ -7286,9 +7286,8 @@ packages:
resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}
- vinext@https://pkg.pr.new/hyoban/vinext/vinext@fe9a72c:
- resolution: {integrity: sha512-Nh4JoTECpSqnXMeFh7QG/zzWwPxQ2dP10e5pZ8nqJ10rQr9Z5MQdsGKYqmH9IE6/aEW/9CVS1O9cquLpM3zFQw==, tarball: https://pkg.pr.new/hyoban/vinext/vinext@fe9a72c}
- version: 0.0.5
+ resolution: {integrity: sha512-T7kzhgX2TbM+unIHaehiz5H7D2i0TLWhUUqvdnu5PgiBzCSMiH8G2rzE7dA8Tc1oEhywuzYP+pt5bfXkk9lk+w==}
engines: {node: '>=22'}
hasBin: true
peerDependencies:
@@ -7297,7 +7296,7 @@ packages:
react: '>=19.2.0'
react-dom: '>=19.2.0'
react-server-dom-webpack: ^19.2.4
- vite: ^7.0.0
+ vite: ^7.0.0 || ^8.0.0-beta.0
peerDependenciesMeta:
'@mdx-js/rollup':
optional: true
@@ -15327,7 +15326,7 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.3
dependencies:
'@vercel/og': 0.8.6
diff --git a/web/vite.config.ts b/web/vite.config.ts
index cd6491f5efc..a5ebd9d2121 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -20,6 +20,7 @@ export default defineConfig(({ mode }) => {
return {
plugins: isTest
? [
+ // TODO: remove tsconfigPaths from test config after vitest supports it natively
tsconfigPaths(),
react(),
{
@@ -34,7 +35,6 @@ export default defineConfig(({ mode }) => {
]
: isStorybook
? [
- tsconfigPaths(),
react(),
]
: [
@@ -54,9 +54,7 @@ export default defineConfig(({ mode }) => {
// }),
],
resolve: {
- alias: {
- '~@': projectRoot,
- },
+ tsconfigPaths: true,
},
// vinext related config