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:
@@ -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}
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user