b4fbd6fe9f
Deploy Site / deploy-vercel (push) Has been skipped
Deploy Site / deploy-docs (push) Has been skipped
Build Skills Index / build-index (push) Has been skipped
CI / Deny unrelated histories (push) Has been skipped
CI / Detect affected areas (push) Successful in 27m35s
CI / OSV scan (push) Failing after 4s
CI / Build&Test Docker image (push) Successful in 9s
CI / Supply-chain scan (push) Has been skipped
CI / Lint Docker scripts (push) Failing after 5m13s
CI / Check contributors (push) Failing after 12m8s
CI / Docs Site (push) Failing after 12m8s
CI / TypeScript (push) Failing after 12m8s
CI / Python lints (push) Failing after 12m9s
CI / Python tests (push) Failing after 12m9s
CI / Check uv.lock (push) Failing after 23m22s
CI / CI timing report (push) Has been cancelled
Build Skills Index / trigger-deploy (push) Has been cancelled
CI / All required checks pass (push) Has been cancelled
23 lines
928 B
JavaScript
23 lines
928 B
JavaScript
#!/usr/bin/env node
|
|
// Launch the desktop renderer with HMR disabled so the React Fast Refresh
|
|
// preamble path is skipped. This sidesteps a current Vite 8 / plugin-react 6
|
|
// bug where the preamble script is not injected into index.html → renderer
|
|
// throws "$RefreshReg$ is not defined" on every TSX module → React tree
|
|
// never mounts.
|
|
//
|
|
// We're not trying to use HMR while profiling typing lag anyway. Hermes desktop
|
|
// boots, you type, profiler measures. HMR off is fine.
|
|
//
|
|
// Usage: node apps/desktop/scripts/dev-no-hmr.mjs
|
|
// (then in another shell, run electron --remote-debugging-port=9222 .)
|
|
|
|
import { createServer } from 'vite'
|
|
|
|
const server = await createServer({
|
|
configFile: new URL('../vite.config.ts', import.meta.url).pathname,
|
|
root: new URL('../', import.meta.url).pathname,
|
|
server: { hmr: false, host: '127.0.0.1', port: 5174, strictPort: true }
|
|
})
|
|
await server.listen()
|
|
server.printUrls()
|