Skip to content

Commit 6e4814c

Browse files
Copilothotlong
andcommitted
fix: remove turbo pre-build from Vercel, use Vite src/ aliases directly
The turbo step compiled all 30+ packages with tsc, hitting pre-existing TS errors in plugin-dashboard, plugin-detail, and plugin-grid. Vite already compiles all workspace packages from source via src/ aliases — turbo is unnecessary and also causes "Unknown component type" runtime errors. Also adds missing vite.config.ts aliases for @object-ui/mobile and @object-ui/plugin-designer which are imported by the console app. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 5831b8b commit 6e4814c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

apps/console/vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://openapi.vercel.sh/vercel.json",
33
"installCommand": "cd ../.. && pnpm install --frozen-lockfile",
4-
"buildCommand": "cd ../.. && NODE_OPTIONS=--max-old-space-size=4096 pnpm turbo run build --filter=@object-ui/console^... --concurrency=3 && cd apps/console && VITE_BASE_PATH=/ pnpm build:vercel",
4+
"buildCommand": "pnpm msw:init && NODE_OPTIONS=--max-old-space-size=4096 VITE_BASE_PATH=/ VITE_USE_MOCK_SERVER=true vite build",
55
"outputDirectory": "dist",
66
"framework": "vite",
77
"rewrites": [

apps/console/vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ export default defineConfig({
108108
'@object-ui/plugin-markdown': path.resolve(__dirname, '../../packages/plugin-markdown/src'),
109109
'@object-ui/plugin-timeline': path.resolve(__dirname, '../../packages/plugin-timeline/src'),
110110
'@object-ui/plugin-view': path.resolve(__dirname, '../../packages/plugin-view/src'),
111+
'@object-ui/mobile': path.resolve(__dirname, '../../packages/mobile/src'),
112+
'@object-ui/plugin-designer': path.resolve(__dirname, '../../packages/plugin-designer/src'),
111113

112114

113115
},

0 commit comments

Comments
 (0)