fix vite resolution for soleprint-ui deps; align kind template
- vite: alias @vue-flow/core and uplot to detection-app's node_modules so they resolve when imported through the symlinked soleprint-ui framework (Vite follows the symlink and would otherwise look up from ui/framework/, where node_modules doesn't exist) - kind-config.yaml.tpl: match the new port layout (gateway on 30080 via 127.0.0.1, redis on 6382), avoiding port-80 conflict with Caddy; keeps the extraMount for /mnt/media so MinIO can seed from host
This commit is contained in:
@@ -9,6 +9,11 @@ export default defineConfig({
|
||||
alias: {
|
||||
'@': resolve(__dirname, 'src'),
|
||||
'@common': resolve(__dirname, '../common'),
|
||||
// soleprint-ui is symlinked (link:../framework). Vite follows the symlink
|
||||
// and resolves its bare imports from ui/framework/, where node_modules
|
||||
// doesn't exist. Pin the framework's runtime deps to this app's deps.
|
||||
'@vue-flow/core': resolve(__dirname, 'node_modules/@vue-flow/core'),
|
||||
'uplot': resolve(__dirname, 'node_modules/uplot'),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
|
||||
Reference in New Issue
Block a user