Myriad changes.
This commit is contained in:
1 parent
76b7ac987b
commit
d1bcd7b082
3 files changed
+10
-3
No files matched your search
@@ -13,6 +13,8 @@ export default defineConfig(({ mode }) => {
|
||||
const hmrClientPort = process.env.VITE_HMR_CLIENT_PORT
|
||||
? parseInt(process.env.VITE_HMR_CLIENT_PORT, 10)
|
||||
: undefined
|
||||
const hmrHost = process.env.VITE_HMR_HOST || undefined
|
||||
const hmrProtocol = process.env.VITE_HMR_PROTOCOL || 'ws'
|
||||
|
||||
return {
|
||||
plugins: [react()],
|
||||
@@ -27,7 +29,7 @@ export default defineConfig(({ mode }) => {
|
||||
},
|
||||
},
|
||||
server: {
|
||||
allowedHosts: true,
|
||||
allowedHosts: ['localhost', '127.0.0.1', 'work', '.ts.net'],
|
||||
hmr: {
|
||||
// No `host` here — Vite falls back to importMetaUrl.hostname, which is the
|
||||
// hostname the browser actually loaded the page from. This makes HMR work
|
||||
@@ -36,12 +38,13 @@ export default defineConfig(({ mode }) => {
|
||||
// ws://localhost:5174 from a remote machine, resolving to that machine's own
|
||||
// loopback rather than the server.
|
||||
// protocol: 'ws' prevents the client from upgrading to wss in local dev.
|
||||
protocol: 'ws',
|
||||
protocol: hmrProtocol,
|
||||
// clientPort tells the browser-side HMR client which HOST port to connect to.
|
||||
// Without it Vite embeds `undefined` as the port in the client bundle →
|
||||
// ws://hostname:undefined/ → invalid URL → no WebSocket → stale code.
|
||||
// Do NOT use `port` — that starts a separate HMR WS server inside the container
|
||||
// on that port, which has no Docker mapping and is unreachable.
|
||||
...(hmrHost !== undefined ? { host: hmrHost } : {}),
|
||||
...(hmrClientPort !== undefined ? { clientPort: hmrClientPort } : {}),
|
||||
},
|
||||
proxy: {
|
||||
|
||||
@@ -21,8 +21,10 @@ FROM python:3.8-slim AS base
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ffmpeg \
|
||||
build-essential \
|
||||
build-essential \
|
||||
git \
|
||||
portaudio19-dev \
|
||||
libsndfile1 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Omnizart's dependency chain includes packages (notably `vamp`) that import
|
||||
|
||||
@@ -132,6 +132,7 @@ services:
|
||||
|
||||
stemengine-webui:
|
||||
container_name: stemengine-webui
|
||||
image: stemengine-webui:latest
|
||||
build:
|
||||
context: ${SEFOLDER}/frontend
|
||||
dockerfile: Dockerfile.webui
|
||||
@@ -160,6 +161,7 @@ services:
|
||||
# Start: docker compose -f stemengine.yml --profile omnizart up -d
|
||||
omnizart-sidecar:
|
||||
container_name: omnizart-sidecar
|
||||
image: omnizart-sidecar:latest
|
||||
build:
|
||||
context: ${SEFOLDER}/omnizart-sidecar
|
||||
dockerfile: Dockerfile
|
||||
|
||||
Reference in new issue
Block a user