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:
2026-04-29 06:11:40 -03:00
parent ed1f6b761b
commit d9e0794b83
2 changed files with 10 additions and 7 deletions

View File

@@ -4,16 +4,14 @@ name: mpr
nodes: nodes:
- role: control-plane - role: control-plane
extraPortMappings: extraPortMappings:
# Gateway → routed via Caddy on port 80 (mpr.local.ar, k8s.mpr.local.ar)
- containerPort: 30080 - containerPort: 30080
hostPort: 80 hostPort: 30080
listenAddress: "127.0.0.1"
protocol: TCP protocol: TCP
# Redis
- containerPort: 30379 - containerPort: 30379
hostPort: 6379 hostPort: 6382
listenAddress: "0.0.0.0"
protocol: TCP
- containerPort: 30432
hostPort: 5432
listenAddress: "0.0.0.0"
protocol: TCP protocol: TCP
extraMounts: extraMounts:
- hostPath: ${MEDIA_HOST_PATH} - hostPath: ${MEDIA_HOST_PATH}

View File

@@ -9,6 +9,11 @@ export default defineConfig({
alias: { alias: {
'@': resolve(__dirname, 'src'), '@': resolve(__dirname, 'src'),
'@common': resolve(__dirname, '../common'), '@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: { server: {