Commit 0eedfe7
fix: restore src/ aliases in CI to fix "Unknown component type" runtime errors
Resolving from dist/ in CI caused plugin side-effect imports
(ComponentRegistry.register) to silently fail on Vercel, resulting in
"Unknown component type: object-grid" and similar runtime errors for
kanban, calendar, and other plugins.
Root cause: when Vite resolves plugins from pre-built dist/ bundles
(instead of src/ via aliases), the ComponentRegistry singleton can get
duplicated across Rollup chunks, so registrations happen on a different
instance than the one SchemaRenderer queries.
Fix: keep src/ aliases in ALL environments. The turbo build step is now
removed from the Vercel buildCommand since Vite processes sources
directly. Memory savings are still achieved by skipping compression
and visualizer plugins in CI (~1.5 GB reduction).
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent e1b90d2 commit 0eedfe7
2 files changed
Lines changed: 14 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
0 commit comments