P0: pin project runtime and document FreeCAD parity plan
This commit is contained in:
@@ -15,16 +15,16 @@ The current milestone is a facade-first integration slice. Part Design document
|
||||
## Development
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev
|
||||
./npmw install
|
||||
./npmw run dev
|
||||
```
|
||||
|
||||
Node.js 22 or newer is the supported development baseline, matching the SQLite WASM package engine requirement.
|
||||
The repository uses a project-local, checksum-verified Node.js `22.23.2` runtime and npm `10.9.8`. The wrapper downloads it to the ignored `.runtime/` directory and never changes `/usr/bin/node`; this removes the engine warning caused by running npm with an older system Node. `./nodew` runs the same pinned Node directly. See [docs/project-runtime.zh-CN.md](docs/project-runtime.zh-CN.md) for recovery and CI rules.
|
||||
|
||||
Build verification:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
./npmw run verify
|
||||
```
|
||||
|
||||
The SQLite OPFS worker requires cross-origin isolation headers. Vite dev and preview apply `Cross-Origin-Opener-Policy: same-origin` and `Cross-Origin-Embedder-Policy: require-corp`; deployments must preserve them.
|
||||
|
||||
Reference in New Issue
Block a user